public class LastActivity extends IQ
LastActivityManager
to get the last activity of a user.| Modifier and Type | Class and Description |
|---|---|
static class |
LastActivity.Provider
The IQ Provider for LastActivity.
|
| Modifier and Type | Field and Description |
|---|---|
long |
lastActivity |
java.lang.String |
message |
static java.lang.String |
NAMESPACE |
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
LastActivity() |
LastActivity(java.lang.String to) |
| Modifier and Type | Method and Description |
|---|---|
XmlStringBuilder |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
long |
getIdleTime()
Returns number of seconds that have passed since the user last logged out.
|
java.lang.String |
getStatusMessage()
Returns the status message of the last unavailable presence received from the user.
|
void |
setLastActivity(long lastActivity) |
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toStringpublic static final java.lang.String NAMESPACE
public long lastActivity
public java.lang.String message
public LastActivity()
public LastActivity(java.lang.String to)
public XmlStringBuilder getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQpublic void setLastActivity(long lastActivity)
public long getIdleTime()
public java.lang.String getStatusMessage()