public final class LastActivity
extends java.lang.Object
The implementation of the <query/>
element in the jabber:iq:last
namespace.
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
jabber:iq:last
|
Constructor and Description |
---|
LastActivity()
Creates an empty last activity instance, used for querying another entity.
|
LastActivity(long seconds,
java.lang.String status)
Creates a last activity instance with a number of seconds, used as response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getSeconds()
Gets the number of seconds since the last activity.
|
java.lang.String |
getStatus()
Gets the status message of the last unavailable presence received from the user, if the last activity request was a Offline User Query.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
jabber:iq:last
public LastActivity()
Creates an empty last activity instance, used for querying another entity.
public LastActivity(long seconds, java.lang.String status)
Creates a last activity instance with a number of seconds, used as response.
seconds
- The number of seconds since the last activity.status
- The status text.public final java.lang.Long getSeconds()
Gets the number of seconds since the last activity.
public final java.lang.String getStatus()
Gets the status message of the last unavailable presence received from the user, if the last activity request was a Offline User Query.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.