Members
(readonly) buddyList :Array.<SFSBuddy>
- Array.<SFSBuddy>
(readonly) buddyStates :Array.<string>
The custom states are received by the client upon initialization of the Buddy List System. They can be configured using the SmartFoxServer Administration Tool.
- Array.<string>
- See
- SFSBuddy#getState
(readonly) isInited :boolean
Buddy List System requires initilization in order to retrieve the client's persistent Buddy List data and enable interaction with Buddies. Use the InitBuddyListRequest to initialize the client-side Buddy List System.
- boolean
(readonly) myDisplayName :string
If the nickname is not set, null is returned.
The nickname of the User in the Buddy List System is handled by means of the ReservedBuddyVariables.BV_NICKNAME reserved Buddy Variable; it can be changed using the dedicated SetBuddyVariablesRequest.
- string
- See
- SFSBuddy#getNickName
- ReservedBuddyVariables
- SetBuddyVariablesRequest
(readonly) myNickname :string
If the nickname is not set, null is returned.
The nickname of the User in the Buddy List System is handled by means of the ReservedBuddyVariables.BV_NICKNAME reserved Buddy Variable; it can be changed using the dedicated SetBuddyVariablesRequest.
- string
- See
- SFSBuddy#getNickName
- ReservedBuddyVariables
- SetBuddyVariablesRequest
(readonly) myOnlineState :boolean
If true, the User is reported as online in the Buddy Lists of other Users having it as a Buddy.
The online state of the User in the Buddy List System is handled by means of the ReservedBuddyVariables.BV_ONLINE reserved Buddy Variable; it can be changed using the dedicated GoOnlineRequest.
- boolean
(readonly) myState :string
Examples of custom states are Available, Busy, Be right back, etc. If the custom state is not set, null is returned.
The custom state of the User in the Buddy List System is handled by means of the ReservedBuddyVariables.BV_STATE reserved Buddy Variable; it can be changed using the dedicated SetBuddyVariablesRequest.
- string
- See
- SFSBuddy#getState
- ReservedBuddyVariables
- SetBuddyVariablesRequest
(readonly) offlineBuddies :Array.<SFSBuddy>
- Array.<SFSBuddy>
(readonly) onlineBuddies :Array.<SFSBuddy>
- Array.<SFSBuddy>
Methods
containsBuddy(name) → {boolean}
| Name | Type | Description |
|---|---|---|
name | string | The name of the Buddy whose presence in the Buddy List should be checked. |
true if the specified Buddy is found in the Buddy List.- Type:
- boolean
getBuddyById(id) → {SFSBuddy}
| Name | Type | Description |
|---|---|---|
id | number | The id of the Buddy to be found. |
- See
null if no Buddy with the passed id can be found in the Buddy List.- Type:
- SFSBuddy
getBuddyByName(name) → {SFSBuddy}
| Name | Type | Description |
|---|---|---|
name | string | The name of the Buddy to be found. |
- Type:
- SFSBuddy
getBuddyByNickname(nickname) → {SFSBuddy}
| Name | Type | Description |
|---|---|---|
nickname | string | The nickname of the Buddy to be found. |
null if no Buddy with the passed nickname can be found in the Buddy List.- Type:
- SFSBuddy
getMyVariable(varName) → {SFSBuddyVariable}
| Name | Type | Description |
|---|---|---|
varName | string | The name of the Buddy Variable to be retrieved. |
null if no Buddy Variable with the passed name belongs to the User.- Type:
- SFSBuddyVariable
getMyVariables() → {Array.<SFSBuddyVariable>}
- Type:
- Array.<SFSBuddyVariable>