@@ -0,0 +1,1299 @@
+package com.uxxu.konashi.lib;%0A%0Aimport java.util.ArrayList;%0A%0Aimport info.izumin.android.bletia.BletiaException;%0A%0A/**%0A * Created by izumin on 9/23/15.%0A */%0Aclass EventEmitter extends ArrayList%3CKonashiListener%3E %7B%0A    public void emitConnect(KonashiManager manager) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onConnect(manager);%0A        %7D%0A    %7D%0A%0A    public void emitDisconnect(KonashiManager manager) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onDisconnect(manager);%0A        %7D%0A    %7D%0A%0A    public void emitError(KonashiManager manager, BletiaException e) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onError(manager, e);%0A        %7D%0A    %7D%0A%0A    public void emitUpdatePioOutput(KonashiManager manager, int value) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onUpdatePioOutput(manager, value);%0A        %7D%0A    %7D%0A%0A    public void emitUpdateUartRx(KonashiManager manager, byte%5B%5D value) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onUpdateUartRx(manager, value);%0A        %7D%0A    %7D%0A%0A    public void emitUpdateBatteryLevel(KonashiManager manager, int level) %7B%0A        for (KonashiListener listener : this) %7B%0A            listener.onUpdateBatteryLevel(manager, level);%0A        %7D%0A    %7D%0A%7D%0A

Add EventEmitter