Class 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 java.lang.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:
    ChatState
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAMESPACE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChatState getChatState()  
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Constructor Detail

      • 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 Detail

      • getElementName

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

        public java.lang.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