Package com.smartfoxserver.v2.buddylist
Class BuddyUtils
- java.lang.Object
-
- com.smartfoxserver.v2.buddylist.BuddyUtils
-
public class BuddyUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BuddyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ISFSObject
encodeBuddy(Buddy buddy)
static ISFSArray
encodeBuddyVariables(java.util.List<BuddyVariable> buddyVariables)
static java.util.List<java.lang.String>
filterNonMutualRecipients(User sender, java.util.List<java.lang.String> recipientNames)
static BuddyVariable
findVariable(java.util.List<BuddyVariable> vars, java.lang.String varName)
static BuddyList
fromSFSObject(ISFSObject sfso)
static ISFSObject
toSFSObject(BuddyList buddyList, boolean excludeTemporaryBuddies)
-
-
-
Method Detail
-
findVariable
public static BuddyVariable findVariable(java.util.List<BuddyVariable> vars, java.lang.String varName)
-
filterNonMutualRecipients
public static java.util.List<java.lang.String> filterNonMutualRecipients(User sender, java.util.List<java.lang.String> recipientNames)
-
toSFSObject
public static ISFSObject toSFSObject(BuddyList buddyList, boolean excludeTemporaryBuddies)
-
encodeBuddy
public static ISFSObject encodeBuddy(Buddy buddy)
-
encodeBuddyVariables
public static ISFSArray encodeBuddyVariables(java.util.List<BuddyVariable> buddyVariables)
-
fromSFSObject
public static BuddyList fromSFSObject(ISFSObject sfso) throws SFSBuddyListException
- Throws:
SFSBuddyListException
-
-