public static void postErrorEvent(int errorCode, ICommandListener listener) { if (listener != null) { try { listener.onError(errorCode); } catch (RemoteException e) { Timber.e(e, e.getMessage()); } } }
public static void postSuccessEvent(ICommandListener listener) { if (listener != null) { try { listener.onSuccess(); } catch (RemoteException e) { Timber.e(e, e.getMessage()); } } }