Class ChatStateExtension

java.lang.Object
org.jivesoftware.smackx.chatstates.packet.ChatStateExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class ChatStateExtension extends Object implements org.jivesoftware.smack.packet.XmlElement
Represents a chat state which is an extension to message packets which is used to indicate the current status of a chat participant.
See Also:
  • Field Details

  • Constructor Details

    • ChatStateExtension

      public ChatStateExtension(ChatState state)
      Default constructor. The argument provided is the state that the extension will represent.
      Parameters:
      state - the state that the extension represents.
  • Method Details

    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • getChatState

      public ChatState getChatState()
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element