|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBuddy
IBuddy represents the exposed attributes of a buddy including presence information. IBuddy objects are presentities (presence aware entities) in a IClient's buddylist and typically represent a remote user whose presence we have subscribed to.
Field Summary | |
---|---|
static int |
ATLUNCH
A status type indicating that a user is at lunch. |
static int |
AWAY
A status type indicating that a user is away. |
static int |
BRB
A status type indicating that a user will be right back. |
static int |
BUSY
A status type indicating that a user is busy. |
static int |
CUSTOM_AWAY
A status type indicating that a user has set a custom away message. |
static int |
DND
A status type indicating that a user wishes to not be disturbed. |
static int |
FREE_TO_CHAT
A status type indicating that a user is free to chat. |
static int |
IDLE
A status type indicating that a user is idle. |
static int |
INVISIBLE
A status type indicating that a user is invisible to other users. |
static int |
NA
A status type indicating that a user is not available. |
static int |
NOT_AT_DESK
A status type indicating that a user is not at their desk. |
static int |
NOT_AT_HOME
A status type indicating that a user is not at home. |
static int |
NOT_IN_OFFICE
A status type indicating that a user is not in the office. |
static int |
OCCUPIED
A status type indicating that a user is occupied. |
static int |
OFFLINE
A status type indicating that a user is not available. |
static int |
ON_VACATION
A status type indicating that a user is on vacation. |
static int |
ONLINE
A status type indicating that a user is online and available. |
static int |
ONPHONE
A status type indicating that a user is on the phone. |
static int |
STEPPED_OUT
A status type indicating that a user has stepped out. |
Method Summary | |
---|---|
String |
getCustomAwayMessage()
Returns this buddy's custom away/status message. |
String |
getGroup()
Returns the name of the Buddy Group that this buddy belongs to. |
int |
getIdleTime()
Returns the number of minutes this buddy has been idle for. |
String |
getName()
Returns this buddy's unique name. |
String |
getNickName()
Returns this buddy's nickname. |
String |
getOwner()
Returns a string representing the client and protocol associated with this buddy. |
Properties |
getProperties()
Returns the properties associated with this buddy. |
String |
getProperty(String name)
Returns the value of a property associated with this buddy, represented as a string. |
int |
getProtocol()
Returns this buddy's protocol. |
String |
getProtocolName()
Returns the name of this buddy's protocol. |
Date |
getSignOnTimeStamp()
Returns the date and time when this buddy signed on to the server. |
int |
getStatus()
Returns this buddy's current online status. |
String |
getStatusAsString()
Returns this buddy's current online status, represented as a printable string (currently in English). |
Date |
getStatusTimeStamp()
Returns the date and time when this buddy last changed its status. |
int |
getWarningPercent()
Returns this buddy's warning percentage. |
boolean |
isMobile()
Returns true if this buddy is on a mobile device (as indicated by the server). |
Field Detail |
---|
static final int OFFLINE
Valid for all protocols.
static final int ONLINE
Valid for all protocols.
static final int AWAY
Valid for AIM, ICQ, JABBER, JSC, MSN, SAMETIME.
static final int IDLE
Valid for AIM, ICQ, JSC, MSN, SAMETIME, YIM.
static final int BRB
Valid for JSC, MSN, YIM.
static final int ONPHONE
Valid for JSC, MSN, YIM.
static final int ATLUNCH
Valid for JSC, MSN, YIM.
static final int BUSY
Valid for JSC, MSN, YIM.
static final int NOT_AT_HOME
Valid for JSC, YIM.
static final int NOT_AT_DESK
Valid for JSC, YIM.
static final int NOT_IN_OFFICE
Valid for JSC, YIM.
static final int ON_VACATION
Valid for JSC, YIM.
static final int STEPPED_OUT
Valid for JSC, YIM.
static final int CUSTOM_AWAY
Valid for JSC, YIM.
static final int DND
Valid for ICQ, JABBER, JSC, SAMETIME.
static final int INVISIBLE
Valid for AIM, ICQ, MSN, YIM, JSC.
static final int NA
Valid for ICQ, JABBER, JSC.
static final int OCCUPIED
Valid for ICQ, JSC.
static final int FREE_TO_CHAT
Valid for ICQ, JABBER.
Method Detail |
---|
String getName()
String getNickName()
String getGroup()
String getOwner()
IClient.getName() + "@" + IClient.getProtocolName()
int getProtocol()
IClient.AIM
or IClient.MSN
String getProtocolName()
int getStatus()
IClient.setStatus(int, String)
String getStatusAsString()
int getIdleTime()
Valid for AIM, ICQ, JSC, YIM.
boolean isMobile()
Valid for AIM, JABBER, YIM.
Date getStatusTimeStamp()
Date getSignOnTimeStamp()
Valid for AIM, JSC.
int getWarningPercent()
Valid for AIM, JSC.
String getCustomAwayMessage()
Properties getProperties()
String getProperty(String name)
getCustomAwayMessage()
.
getGroup()
.
getIdleTime()
.
isMobile()
.
getName()
.
getNickName()
.
getOwner()
.
getProtocol()
.
getProtocolName()
.
getSignOnTimeStamp()
.
getStatus()
.
getStatusAsString()
.
getStatusTimeStamp()
.
getWarningPercent()
.
name
- the name of the property
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |