#import <SFSBuddyManager.h>
Inherits NSObject, and <IBuddyManager>.
|
NSMutableDictionary * | _buddiesByName |
|
NSMutableDictionary * | _myVariables |
|
BOOL | _myOnlineState |
|
NSString * | _myNickName |
|
NSString * | _myState |
|
BOOL | _inited |
|
NSMutableArray * | _buddyStates |
|
__weak SmartFox2XClient * | _sfs |
|
The class manages the current User's Buddy List
◆ containsBuddy:
- (BOOL) containsBuddy: |
|
(NSString *) |
name |
|
◆ getBuddyById:
- (id< Buddy >) getBuddyById: |
|
(NSInteger) |
id_ |
|
◆ getBuddyByName:
- (id< Buddy >) getBuddyByName: |
|
(NSString *) |
name |
|
Find a Buddy from its name
- Parameters
-
- Returns
- the Buddy, or null if not found
- See also
- SFSBuddy
◆ getBuddyByNickName:
- (id< Buddy >) getBuddyByNickName: |
|
(NSString *) |
nickName |
|
Find a Buddy from its optional nick name
- Parameters
-
- Returns
- the Buddy, or null if not found
- See also
- SFSBuddy
◆ getMyVariable:
- (id< BuddyVariable >) getMyVariable: |
|
(NSString *) |
varName |
|
◆ buddyList
◆ buddyStates
- (NSArray *) buddyStates |
|
readatomicweak |
Get a list of Strings representing the custom Buddy states that the application can use. The custom states are sent upon initialization of the Buddy List and are configured on the server side.
◆ isInited
◆ myNickName
- (NSString *) myNickName |
|
readatomicweak |
Get the current User's optional nickname This operation is valid only if the User's BuddyList has already been initialized The value is handled by a reserved Buddy Variable
- Returns
- return the Users' nickname or null if the nickname was never set
- See also
- ReservedBuddyVariables
◆ myOnlineState
Get the current User's Online State This operation is valid only if the User's BuddyList has already been initialized The value is handled by a reserved Buddy Variable
- Returns
- true if the User is online, false otherwise
- See also
- ReservedBuddyVariables
◆ myState
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...) This operation is valid only if the User's BuddyList has already been initialized The value is handled by a reserved Buddy Variable
- Returns
- return the Users' state or null if the state was not set
- See also
- ReservedBuddyVariables
◆ myVariables
- (NSArray *) myVariables |
|
readatomicweak |
Get all current User's Buddy Variables This operation is valid only if the User's BuddyList has already been initialized
- See also
- SFSBuddyVariable
◆ offlineBuddies
- (NSArray *) offlineBuddies |
|
readatomicweak |
Get a list of all offline Buddies in the User's Buddy list
◆ onlineBuddies
- (NSArray *) onlineBuddies |
|
readatomicweak |
Get a list of all online Buddies in the User's Buddy list