1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Improved Javadocs on getPresence method.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2132 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-10-03 19:30:45 +00:00 committed by mtucker
parent c47f08557c
commit 41d5c4637e

View file

@ -432,11 +432,13 @@ public class Roster {
}
/**
* Returns the presence info for a particular user, or <tt>null</tt> if there is
* no presence information.
* Returns the presence info for a particular user, or <tt>null</tt> if the user
* is unavailable (offline) or if no presence information is available, such as
* when you are not subscribed to the user's presence updates.
*
* @param user a fully qualified xmpp ID, e.g. jdoe@example.com
* @return the user's presence.
* @return the user's current presence, or <tt>null</tt> if the user is unavailable
* or if no presence information is available..
*/
public Presence getPresence(String user) {
String key = StringUtils.parseName(user) + "@" + StringUtils.parseServer(user);