Class AgentStatus

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.FullyQualifiedElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlLangElement

    public class AgentStatus
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    Agent status packet.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AgentStatus.ChatInfo
      Represents information about a Chat where this Agent is participating.
      static class  AgentStatus.Provider
      Stanza extension provider for AgentStatus packets.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELEMENT_NAME
      Element name of the stanza extension.
      static java.lang.String NAMESPACE
      Namespace of the stanza extension.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<AgentStatus.ChatInfo> getCurrentChats()
      Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.
      java.lang.String getElementName()  
      int getMaxChats()  
      java.lang.String getNamespace()  
      org.jxmpp.jid.EntityBareJid getWorkgroupJID()  
      java.lang.String 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.FullyQualifiedElement

        getLanguage, getQName
    • Field Detail

      • ELEMENT_NAME

        public static final java.lang.String ELEMENT_NAME
        Element name of the stanza extension.
        See Also:
        Constant Field Values
      • NAMESPACE

        public static final java.lang.String NAMESPACE
        Namespace of the stanza extension.
        See Also:
        Constant Field Values
    • Method Detail

      • getWorkgroupJID

        public org.jxmpp.jid.EntityBareJid getWorkgroupJID()
      • getCurrentChats

        public java.util.List<AgentStatus.ChatInfo> getCurrentChats()
        Returns a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.
        Returns:
        a collection of ChatInfo where each ChatInfo represents a Chat where this agent is participating.
      • getMaxChats

        public int getMaxChats()
      • 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.FullyQualifiedElement
      • toXML

        public java.lang.String toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element