public class OfflineMessageRequest extends IQ
Modifier and Type | Class and Description |
---|---|
static class |
OfflineMessageRequest.Item
Item child that holds information about offline messages to view or delete.
|
static class |
OfflineMessageRequest.Provider |
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
Constructor and Description |
---|
OfflineMessageRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(OfflineMessageRequest.Item item)
Adds an item child that holds information about offline messages to view or delete.
|
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
List<OfflineMessageRequest.Item> |
getItems()
Returns a List of item childs that holds information about offline messages to
view or delete.
|
boolean |
isFetch()
Returns true if all the offline messages of the user should be retrieved.
|
boolean |
isPurge()
Returns true if all the offline messages of the user should be deleted.
|
void |
setFetch(boolean fetch)
Sets if all the offline messages of the user should be retrieved.
|
void |
setPurge(boolean purge)
Sets if all the offline messages of the user should be deleted.
|
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 OfflineMessageRequest()
public List<OfflineMessageRequest.Item> getItems()
public void addItem(OfflineMessageRequest.Item item)
item
- the item child that holds information about offline messages to view or delete.public boolean isPurge()
public void setPurge(boolean purge)
purge
- true if all the offline messages of the user should be deleted.public boolean isFetch()
public void setFetch(boolean fetch)
fetch
- true if all the offline messages of the user should be retrieved.public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ