public class ChatSettings extends IQ
Modifier and Type | Class and Description |
---|---|
static class |
ChatSettings.InternalProvider
Packet extension provider for AgentStatusRequest packets.
|
Modifier and Type | Field and Description |
---|---|
static int |
BOT_SETTINGS
Defined as Bot settings type.
|
static String |
ELEMENT_NAME
Element name of the packet extension.
|
static int |
IMAGE_SETTINGS
Defined as image type.
|
static String |
NAMESPACE
Namespace of the packet extension.
|
static int |
TEXT_SETTINGS
Defined as Text settings type.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
ChatSettings() |
ChatSettings(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addSetting(ChatSetting setting) |
ChatSetting |
getChatSetting(String key) |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
ChatSetting |
getFirstEntry() |
Collection<ChatSetting> |
getSettings() |
void |
setKey(String key) |
void |
setType(int type) |
createErrorResponse, createResultIQ, getType, setType, toXML
addCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toString
public static final int IMAGE_SETTINGS
public static final int TEXT_SETTINGS
public static final int BOT_SETTINGS
public static final String ELEMENT_NAME
public static final String NAMESPACE
public ChatSettings()
public ChatSettings(String key)
public void setType(int type)
public void addSetting(ChatSetting setting)
public Collection<ChatSetting> getSettings()
public ChatSetting getChatSetting(String key)
public ChatSetting getFirstEntry()
public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ