private void registerListeners() { mPubSub.addListener(HikePubSub.MESSAGE_RECEIVED, this); mPubSub.addListener(HikePubSub.SEND_NEW_MSG, this); mPubSub.addListener(HikePubSub.MSG_READ, this); mPubSub.addListener(HikePubSub.USER_JOINED, this); mPubSub.addListener(HikePubSub.USER_LEFT, this); mPubSub.addListener(HikePubSub.UPDATE_UI, this); mPubSub.addListener(HikePubSub.SMS_CREDIT_CHANGED, this); }
private void registerListeners() { mPubSub.addListener(HikePubSub.UPDATE_UI, this); mPubSub.addListener(HikePubSub.PARTICIPANT_JOINED_GROUP, this); mPubSub.addListener(HikePubSub.PARTICIPANT_LEFT_GROUP, this); mPubSub.addListener(HikePubSub.GROUP_NAME_CHANGED, this); mPubSub.addListener(HikePubSub.GROUP_END, this); mPubSub.addListener(HikePubSub.USER_JOINED, this); mPubSub.addListener(HikePubSub.USER_LEFT, this); }
public HikeMqttManager() { //logger = NLog.LogManager.GetCurrentClassLogger(); pubSub = App.HikePubSubInstance; pubSub.addListener(HikePubSub.MQTT_PUBLISH, this); }
public void registerListeners() { mPubSub.addListener(HikePubSub.MESSAGE_SENT, this); mPubSub.addListener(HikePubSub.MESSAGE_RECEIVED_READ, this); mPubSub.addListener(HikePubSub.MESSAGE_DELETED, this); mPubSub.addListener(HikePubSub.BLOCK_USER, this); mPubSub.addListener(HikePubSub.UNBLOCK_USER, this); mPubSub.addListener(HikePubSub.ADD_OR_UPDATE_PROFILE, this); mPubSub.addListener(HikePubSub.GROUP_LEFT, this); mPubSub.addListener(HikePubSub.BLOCK_GROUPOWNER, this); mPubSub.addListener(HikePubSub.UNBLOCK_GROUPOWNER, this); mPubSub.addListener(HikePubSub.DELETE_CONVERSATION, this); mPubSub.addListener(HikePubSub.DELETE_ALL_CONVERSATIONS, this); mPubSub.addListener(HikePubSub.ATTACHMENT_RESEND, this); mPubSub.addListener(HikePubSub.ATTACHMENT_SENT, this); mPubSub.addListener(HikePubSub.FORWARD_ATTACHMENT, this); }