Beamable SDK
|
This type defines the Client main entry point for the Friends feature. More...
Public Member Functions | |
SocialApi (IUserContext ctx, IBeamableRequester requester) | |
Promise< SocialList > | Get () |
Get the current player's SocialList. If the social list has never been downloaded, this will use the RefreshSocialList method. However, once the social list has been downloaded, this method will return immediately with the cached data. More... | |
Promise< EmptyResponse > | ImportFriends (SocialThirdParty source, string token) |
Import friends from a third party provider. More... | |
Promise< FriendStatus > | BlockPlayer (long playerId) |
Block a player from the current player's social list. When a player is blocked, they'll appear in the SocialList.blocked list. Use the UnblockPlayer method to revert. More... | |
Promise< FriendStatus > | UnblockPlayer (long playerId) |
Unblock a player from the current player's SocialList.blocked list. More... | |
Promise< EmptyResponse > | CancelFriendRequest (long playerId) |
Promise< EmptyResponse > | RemoveFriend (long playerId) |
Remove a player from the current player's SocialList.friends list. More... | |
Promise< SocialList > | RefreshSocialList () |
Get the current player's SocialList More... | |
Properties | |
IBeamableRequester | Requester [get] |
Properties inherited from Beamable.Common.Api.IHasBeamableRequester | |
IBeamableRequester | Requester [get] |
Access the IBeamableRequester | |
This type defines the Client main entry point for the Friends feature.
|
inline |
Block a player from the current player's social list. When a player is blocked, they'll appear in the SocialList.blocked list. Use the UnblockPlayer method to revert.
gamerTag | The gamertag of the player to block |
Implements Beamable.Common.Api.Social.ISocialApi.
|
inline |
Get the current player's SocialList. If the social list has never been downloaded, this will use the RefreshSocialList method. However, once the social list has been downloaded, this method will return immediately with the cached data.
Implements Beamable.Common.Api.Social.ISocialApi.
|
inline |
Import friends from a third party provider.
source | The third party to find friends from. |
token | An access token issued from the third party that can be sent to Beamable so that the Beamable Cloud can perform the friend import. |
Implements Beamable.Common.Api.Social.ISocialApi.
|
inline |
Get the current player's SocialList
Implements Beamable.Common.Api.Social.ISocialApi.
|
inline |
Remove a player from the current player's SocialList.friends list.
gamerTag | The gamertag of the player to remove. |
Implements Beamable.Common.Api.Social.ISocialApi.
|
inline |
Unblock a player from the current player's SocialList.blocked list.
gamerTag | The gamertag of the player to unblock |
Implements Beamable.Common.Api.Social.ISocialApi.