|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wilko.jaim.TocResponse | +--com.wilko.jaim.BuddyUpdateTocResponse
A BuddyUpdateTocResponse is delivered to a JaimEventListener
when a buddy update is received from the TOC server
Field Summary | |
static java.lang.String |
RESPONSE_TYPE
|
Fields inherited from class com.wilko.jaim.TocResponse |
cmd |
Constructor Summary | |
BuddyUpdateTocResponse()
Creates new BuddyUpdateTocResponse |
Method Summary | |
boolean |
canHandle(java.lang.String Response)
Returns true if this response handler can handle the specified response. |
java.lang.String |
getBuddy()
Obtain the buddy name from this update |
int |
getEvil()
Obtain the "Evil" (Warning) level of this buddy |
int |
getIdleTime()
Obtain the idle time of this buddy |
java.lang.String |
getResponseType()
Get the response type of this response. |
java.util.Date |
getSignonTime()
Get the signon time of this buddy |
boolean |
isAdmin()
Is this buddy an "Administrator" |
boolean |
isAway()
Get the away status of the buddy specified by this update |
boolean |
isConfirmed()
IS this buddy a "confirmed" user |
boolean |
isOnline()
Obtain the online status of this buddy update |
boolean |
isUnconfirmed()
Is this user an "Unconfirmed user" |
TocResponse |
parseString(java.lang.String str)
The parseString method is used to populate the fields of this class from a Buddy Update string from the TOC server |
Methods inherited from class com.wilko.jaim.TocResponse |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String RESPONSE_TYPE
Constructor Detail |
public BuddyUpdateTocResponse()
Method Detail |
public TocResponse parseString(java.lang.String str)
parseString
in interface TocResponseHandler
str
- The String containing the buddy update
public boolean isAway()
public java.lang.String getResponseType()
getResponseType
in class TocResponse
public java.lang.String getBuddy()
public boolean isOnline()
public int getIdleTime()
public int getEvil()
public boolean isAdmin()
public boolean isConfirmed()
public boolean isUnconfirmed()
public java.util.Date getSignonTime()
public boolean canHandle(java.lang.String Response)
canHandle
in interface TocResponseHandler
Response
- - the response string from TOC. This is the part of the response before the first ':'
|
jaimlib.sourceforge.net | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |