|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.gotoandplay.smartfoxclient.data.Buddy
public class Buddy
The Buddy class represents the user buddy.
This class is used internally by the SmartFoxClient class;
also, Buddy objects are returned by various methods and events of the SmartFoxServer API.
SmartFoxClient.buddyList,
SmartFoxClient.addBuddy(java.lang.String),
SmartFoxClient.getBuddyByName(java.lang.String),
SmartFoxClient.getBuddyById(int),
SmartFoxClient.getBuddyRoom(it.gotoandplay.smartfoxclient.data.Buddy),
SmartFoxClient.loadBuddyList(),
SmartFoxClient.removeBuddy(java.lang.String),
SmartFoxClient.sendBuddyPermissionResponse(boolean, java.lang.String),
SmartFoxClient.setBuddyVariables(java.util.Map) | Constructor Summary | |
|---|---|
Buddy()
|
|
| Method Summary | |
|---|---|
int |
getId()
Returns the buddy id. |
java.lang.String |
getName()
Returns the buddy name. |
java.util.Map<java.lang.String,java.lang.String> |
getVariables()
Returns the buddy variables. |
boolean |
isBlocked()
Returns if the user is blocked. |
boolean |
isOnline()
Returns if the user is online or not. |
void |
setBlocked(boolean blocked)
|
void |
setId(int id)
|
void |
setName(java.lang.String name)
|
void |
setOnline(boolean online)
|
void |
setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Buddy()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
public int getId()
public void setId(int id)
public boolean isOnline()
public void setOnline(boolean online)
public boolean isBlocked()
public void setBlocked(boolean blocked)
public java.util.Map<java.lang.String,java.lang.String> getVariables()
The buddy variables are represented but Map where the variable name is key
and the variable value is value.
public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||