IBuddyManager Protocol Reference
| Conforms to | NSObject | 
| Declared in | IBuddyManager.h | 
Tasks
- 
	
		– isInitedChecks if the current User’s Buddy List is inited. If not you should send an InitBuddyListRequest to the server in order to retrieve your persistent Buddy List data. required method
- 
	
		– containsBuddy:Checks if a Buddy is present in the current User’s Buddy List required method
- 
	
		– getBuddyById:Find a Buddy from its User Id required method
- 
	
		– getBuddyByName:Find a Buddy from its name required method
- 
	
		– getBuddyByNickName:Find a Buddy from its optional nick name required method
- 
	
		– offlineBuddiesGet a list of all offline Buddies in the User’s Buddy list required method
- 
	
		– onlineBuddiesGet a list of all online Buddies in the User’s Buddy list required method
- 
	
		– buddyListGet the User’s buddy list. It could be null if the Buddy List was not initialized required method
- 
	
		– buddyStatesGet 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. required method
- 
	
		– getMyVariable:Get current Users' BuddyVariable by name required method
- 
	
		– myVariablesGet all current User’s Buddy Variables This operation is valid only if the User’s BuddyList has already been initialized required method
- 
	
		– myOnlineStateGet 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 required method
- 
	
		– myNickNameGet 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 required method
- 
	
		– myStateGet 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 required method
Instance Methods
buddyList
Get the User’s buddy list. It could be null if the Buddy List was not initialized
- (NSArray *)buddyListDiscussion
Get the User’s buddy list. It could be null if the Buddy List was not initialized
See Also
Declared In
IBuddyManager.hbuddyStates
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.
- (NSArray *)buddyStatesDiscussion
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.
Declared In
IBuddyManager.hcontainsBuddy:
Checks if a Buddy is present in the current User’s Buddy List
- (BOOL)containsBuddy:(NSString *)nameParameters
- name
- the Buddy name 
Return Value
the true if the Buddy exists
Discussion
Checks if a Buddy is present in the current User’s Buddy List
See Also
Declared In
IBuddyManager.hgetBuddyById:
Find a Buddy from its User Id
- (id<Buddy>)getBuddyById:(NSInteger)id_Parameters
- id_
- the user id 
Return Value
the Buddy, or null if not found
Discussion
Find a Buddy from its User Id
See Also
Declared In
IBuddyManager.hgetBuddyByName:
Find a Buddy from its name
- (id<Buddy>)getBuddyByName:(NSString *)nameParameters
- name
- the Buddy name 
Return Value
the Buddy, or null if not found
Discussion
Find a Buddy from its name
See Also
Declared In
IBuddyManager.hgetBuddyByNickName:
Find a Buddy from its optional nick name
- (id<Buddy>)getBuddyByNickName:(NSString *)nickNameParameters
- nickName
- the nickname 
Return Value
the Buddy, or null if not found
Discussion
Find a Buddy from its optional nick name
See Also
Declared In
IBuddyManager.hgetMyVariable:
Get current Users' BuddyVariable by name
- (id<BuddyVariable>)getMyVariable:(NSString *)varNameParameters
- varName
- the variable name 
Discussion
Get current Users' BuddyVariable by name
Declared In
IBuddyManager.hisInited
Checks if the current User’s Buddy List is inited. If not you should send an InitBuddyListRequest to the server in order to retrieve your persistent Buddy List data.
- (BOOL)isInitedDiscussion
Checks if the current User’s Buddy List is inited. If not you should send an InitBuddyListRequest to the server in order to retrieve your persistent Buddy List data.
See Also
Declared In
IBuddyManager.hmyNickName
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
- (NSString *)myNickNameReturn Value
return the Users' nickname or null if the nickname was never set
Discussion
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
See Also
Declared In
IBuddyManager.hmyOnlineState
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
- (BOOL)myOnlineStateReturn Value
true if the User is online, false otherwise
Discussion
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
See Also
Declared In
IBuddyManager.hmyState
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
- (NSString *)myStateReturn Value
return the Users' state or null if the state was not set
Discussion
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
See Also
Declared In
IBuddyManager.hmyVariables
Get all current User’s Buddy Variables This operation is valid only if the User’s BuddyList has already been initialized
- (NSArray *)myVariablesDiscussion
Get all current User’s Buddy Variables This operation is valid only if the User’s BuddyList has already been initialized
See Also
Declared In
IBuddyManager.h