Buddy Protocol Reference
| Conforms to | NSObject |
| Declared in | Buddy.h |
Tasks
-
– idThe id of the Buddy
required method -
– nameThe name of the Buddy
required method -
– isBlockedReturns true if the Buddy is blocked in the current Users' BuddyList
required method -
– isOnlineReturn true if the User is online in the BuddyList system The value is stored in a reserved Buddy Variable
required method -
– isTempReturn true if the Buddy is temporary (not persistent)
required method -
– stateThe current Buddy custom state (e.g. “Available”, “Busy”, etc…)
required method -
– nickNameAn optional Buddy nickname
required method -
– variablesObtain a list of BuddyVariables.
required method -
– getVariable:Get the BuddyVariable with the provided name.
required method -
– containsVariable:Return true if a BuddyVariable with the provided name exists
required method -
– getOfflineVariablesReturn a list of offline Buddy Variables
required method -
– getOnlineVariablesReturn a list of non-persistent Buddy Variables
required method
Instance Methods
containsVariable:
Return true if a BuddyVariable with the provided name exists
- (BOOL)containsVariable:(NSString *)varNameDiscussion
Return true if a BuddyVariable with the provided name exists
Declared In
Buddy.hgetOfflineVariables
Return a list of offline Buddy Variables
- (NSArray *)getOfflineVariablesDiscussion
Return a list of offline Buddy Variables
Declared In
Buddy.hgetOnlineVariables
Return a list of non-persistent Buddy Variables
- (NSArray *)getOnlineVariablesDiscussion
Return a list of non-persistent Buddy Variables
Declared In
Buddy.hgetVariable:
Get the BuddyVariable with the provided name.
- (id<BuddyVariable>)getVariable:(NSString *)varNameDiscussion
Get the BuddyVariable with the provided name.
nil is returned if not BuddyVariable exists with that name
Declared In
Buddy.hid
The id of the Buddy
- (NSInteger)idDiscussion
The id of the Buddy
The id corresponds to the current id of the User in the system
Declared In
Buddy.hisBlocked
Returns true if the Buddy is blocked in the current Users' BuddyList
- (BOOL)isBlockedDiscussion
Returns true if the Buddy is blocked in the current Users' BuddyList
See Also
Declared In
Buddy.hisOnline
Return true if the User is online in the BuddyList system The value is stored in a reserved Buddy Variable
- (BOOL)isOnlineDiscussion
Return true if the User is online in the BuddyList system The value is stored in a reserved Buddy Variable
See Also
Declared In
Buddy.hisTemp
Return true if the Buddy is temporary (not persistent)
- (BOOL)isTempDiscussion
Return true if the Buddy is temporary (not persistent)
Declared In
Buddy.hnickName
An optional Buddy nickname
- (NSString *)nickNameDiscussion
An optional Buddy nickname
The value is stored in a reserved Buddy Variable
See Also
Declared In
Buddy.hstate
The current Buddy custom state (e.g. “Available”, “Busy”, etc…)
- (NSString *)stateDiscussion
The current Buddy custom state (e.g. “Available”, “Busy”, etc…)
The value is stored in a reserved Buddy Variable
See Also
Declared In
Buddy.hvariables
Obtain a list of BuddyVariables.
- (NSArray *)variablesDiscussion
Obtain a list of BuddyVariables.
Please note that by convention any variable whose name starts with the dollar sign ($) will be regarded as persistent and stored locally by the server.
These variables are also referred to as “offline variables” because they are available to other Users even when the Buddy is offline.
See Also
Declared In
Buddy.h