|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Buddy
The Buddy interface defines all the methods and properties that an object representing a SmartFoxServer Buddy entity exposes.
In the SmartFoxServer 2X client API this interface is implemented by the SFSBuddy class. Read the class description for additional informations.
SFSBuddy| Method Summary | |
|---|---|
void |
clearVolatileVariables()
*Private* |
boolean |
containsVariable(java.lang.String varName)
Indicates whether this buddy has the specified Buddy Variable set or not. |
int |
getId()
Indicates the id of this buddy. |
java.lang.String |
getName()
Indicates the name of this buddy. |
java.lang.String |
getNickName()
Returns the nickname of this buddy. |
java.util.List<BuddyVariable> |
getOfflineVariables()
Retrieves the list of persistent Buddy Variables of this buddy. |
java.util.List<BuddyVariable> |
getOnlineVariables()
Retrieves the list of non-persistent Buddy Variables of this buddy. |
java.lang.String |
getState()
Returns the custom state of this buddy. |
BuddyVariable |
getVariable(java.lang.String varName)
Retrieves a Buddy Variable from its name. |
java.util.List<BuddyVariable> |
getVariables()
Returns a list of BuddyVariable objects associated with the buddy. |
boolean |
isBlocked()
Indicates whether this buddy is blocked in the current user's buddies list or not. |
boolean |
isOnline()
Indicates whether this buddy is temporary (non-persistent) in the current user's buddies list or not. |
boolean |
isTemp()
Return true if the Buddy is temporary (not persistent) |
void |
removeVariable(java.lang.String varName)
*Private* |
void |
setBlocked(boolean blocked)
*Private* |
void |
setId(int id)
*Private* |
void |
setVariable(BuddyVariable bVar)
*Private* |
void |
setVariables(java.util.List<BuddyVariable> variables)
*Private* |
| Method Detail |
|---|
int getId()
User.getId()java.lang.String getName()
User.getName()boolean isBlocked()
BlockBuddyRequestboolean isOnline()
boolean isTemp()
java.lang.String getState()
null is returned.
The list of available custom states is returned by the IBuddyManager.buddyStates property.
IBuddyManager.getBuddyStates()java.lang.String getNickName()
null is returned.
java.util.List<BuddyVariable> getVariables()
BuddyVariable,
getVariable(String)BuddyVariable getVariable(java.lang.String varName)
varName - The name of the Buddy Variable to be retrieved.
null if no Buddy Variable with the passed name is associated with this buddy.getVariables(),
SetBuddyVariablesRequestboolean containsVariable(java.lang.String varName)
varName - The name of the Buddy Variable whose existance must be checked.
true if a Buddy Variable with the passed name is set for this buddy.java.util.List<BuddyVariable> getOfflineVariables()
BuddyVariable.isOfflinejava.util.List<BuddyVariable> getOnlineVariables()
BuddyVariable.isOfflinevoid setVariable(BuddyVariable bVar)
void setVariables(java.util.List<BuddyVariable> variables)
void setId(int id)
void setBlocked(boolean blocked)
void removeVariable(java.lang.String varName)
void clearVolatileVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||