Examples of ChatState


Examples of com.calclab.emite.xep.chatstate.ChatStateHook.ChatState

  }

  @Override
  public void onMessageReceived(final MessageReceivedEvent event) {
    final Message message = event.getMessage();
    final ChatState state = getStateFromMessage(message);
    if (state != null) {
      final XmppURI from = message.getFrom();
      othersState.put(from, state);
      eventBus.fireEventFromSource(new RoomChatStateNotificationEvent(message.getFrom(), state), this);
    }
View Full Code Here

Examples of com.calclab.emite.xep.chatstate.ChatStateHook.ChatState

  public HandlerRegistration addRoomChatStateNotificationHandler(final RoomChatStateNotificationEvent.Handler handler) {
    return eventBus.addHandlerToSource(RoomChatStateNotificationEvent.TYPE, this, handler);
  }

  public ChatState getOtherState(final XmppURI occupantUri) {
    final ChatState state = othersState.get(occupantUri);
    return state == null ? ChatState.active : state;
  }
View Full Code Here

Examples of org.jivesoftware.smackx.ChatState

    }

    public static class Provider implements PacketExtensionProvider {

        public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
            ChatState state;
            try {
                state = ChatState.valueOf(parser.getName());
            }
            catch (Exception ex) {
                state = ChatState.active;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.