Class ChatSettings
- java.lang.Object
-
- org.jivesoftware.smack.packet.Stanza
-
- org.jivesoftware.smack.packet.IQ
-
- org.jivesoftware.smackx.workgroup.settings.ChatSettings
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.IqView,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.StanzaView,org.jivesoftware.smack.packet.TopLevelStreamElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
public class ChatSettings extends org.jivesoftware.smack.packet.IQ
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatSettings.InternalProviderStanza extension provider for AgentStatusRequest packets.
-
Field Summary
Fields Modifier and Type Field Description static intBOT_SETTINGSDefined as Bot settings type.static java.lang.StringELEMENT_NAMEElement name of the stanza extension.static intIMAGE_SETTINGSDefined as image type.static java.lang.StringNAMESPACENamespace of the stanza extension.static intTEXT_SETTINGSDefined as Text settings type.
-
Constructor Summary
Constructors Constructor Description ChatSettings()ChatSettings(java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSetting(ChatSetting setting)ChatSettinggetChatSetting(java.lang.String key)ChatSettinggetFirstEntry()protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuildergetIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)java.util.Collection<ChatSetting>getSettings()voidsetKey(java.lang.String key)voidsetType(int type)-
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, setType, toString, toXML
-
Methods inherited from class org.jivesoftware.smack.packet.Stanza
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IMAGE_SETTINGS
public static final int IMAGE_SETTINGS
Defined as image type.- See Also:
- Constant Field Values
-
TEXT_SETTINGS
public static final int TEXT_SETTINGS
Defined as Text settings type.- See Also:
- Constant Field Values
-
BOT_SETTINGS
public static final int BOT_SETTINGS
Defined as Bot settings type.- See Also:
- Constant Field Values
-
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
-
setKey
public void setKey(java.lang.String key)
-
setType
public void setType(int type)
-
addSetting
public void addSetting(ChatSetting setting)
-
getSettings
public java.util.Collection<ChatSetting> getSettings()
-
getChatSetting
public ChatSetting getChatSetting(java.lang.String key)
-
getFirstEntry
public ChatSetting getFirstEntry()
-
getIQChildElementBuilder
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
- Specified by:
getIQChildElementBuilderin classorg.jivesoftware.smack.packet.IQ
-
-