diff --git a/source/org/jivesoftware/smackx/packet/LastActivity.java b/source/org/jivesoftware/smackx/packet/LastActivity.java index d3005377e..adac0b182 100644 --- a/source/org/jivesoftware/smackx/packet/LastActivity.java +++ b/source/org/jivesoftware/smackx/packet/LastActivity.java @@ -18,7 +18,6 @@ * limitations under the License. */ - package org.jivesoftware.smackx.packet; import org.jivesoftware.smack.PacketCollector; @@ -34,21 +33,14 @@ import org.xmlpull.v1.XmlPullParser; /** * A last activity IQ for retrieving information about the last activity associated with a Jabber ID. * LastActivity (JEP-012) allows for retrieval of how long a particular user has been idle and the - * message the specified when doing so. - * To get the last activity of a user, simple send the LastActivity packet to them, as in the - * following code example: - *
- *- * XMPPConnection con = new XMPPConnection("jabber.org"); - * con.login("john", "doe"); - * LastActivity activity = LastActivity.getLastActivity(con, "xray@jabber.org"); - *+ * message the specified when doing so. Use {@link org.jivesoftware.smackx.LastActivityManager} + * to get the last activity of a user. * * @author Derek DeMoro */ public class LastActivity extends IQ { - public long lastActivity; + public long lastActivity = -1; public String message; public LastActivity() { @@ -57,12 +49,17 @@ public class LastActivity extends IQ { public String getChildElementXML() { StringBuilder buf = new StringBuilder(); - buf.append("