|
| Client (string serverKey) |
|
| Client (string serverKey, IHttpAdapter adapter) |
|
| Client (string scheme, string host, int port, string serverKey) |
|
| Client (string scheme, string host, int port, string serverKey, IHttpAdapter adapter, bool autoRefreshSession=true) |
|
| Client (Uri uri, string serverKey) |
|
| Client (Uri uri, string serverKey, IHttpAdapter adapter, bool autoRefreshSession=true) |
|
async Task | AddFriendsAsync (ISession session, IEnumerable< string > ids, IEnumerable< string > usernames=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Add one or more friends by id or username.- Parameters
-
session | The session of the user. |
ids | The ids of the users to add or invite as friends. |
usernames | The usernames of the users to add as friends. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | AddGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Add one or more users to the group.- Parameters
-
session | The session of the user. |
groupId | The id of the group to add users into. |
ids | The ids of the users to add or invite to the group. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task< ISession > | AuthenticateAppleAsync (string token, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with an Apple ID against the server.- Parameters
-
username | A username used to create the user. |
token | The ID token received from Apple to validate. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateCustomAsync (string id, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with a custom id.- Parameters
-
id | A custom identifier usually obtained from an external authentication service. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateDeviceAsync (string id, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with a device id.- Parameters
-
id | A device identifier usually obtained from a platform API. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateEmailAsync (string email, string password, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with an email and password.- Parameters
-
email | The email address of the user. |
password | The password for the user. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateFacebookAsync (string token, string username=null, bool create=true, bool import=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with a Facebook auth token.- Parameters
-
token | An OAuth access token from the Facebook SDK. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
import | If the Facebook friends should be imported. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateGameCenterAsync (string bundleId, string playerId, string publicKeyUrl, string salt, string signature, string timestamp, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with Apple Game Center.- Parameters
-
bundleId | The bundle id of the Game Center application. |
playerId | The player id of the user in Game Center. |
publicKeyUrl | The URL for the public encryption key. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
timestamp | The date and time that the signature was created. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateGoogleAsync (string token, string username=null, bool create=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with a Google auth token.- Parameters
-
token | An OAuth access token from the Google SDK. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task< ISession > | AuthenticateSteamAsync (string token, string username=null, bool create=true, bool import=true, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Authenticate a user with a Steam auth token.- Parameters
-
token | An authentication token from the Steam network. |
username | A username used to create the user. May be null . |
create | If the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
import | If the Steam friends should be imported. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a session object.
|
|
async Task | BanGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Ban a set of users from a group.- Parameters
-
session | The session of the user. |
groupId | The group to ban the users from. |
ids | The ids of the users to ban. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | BlockFriendsAsync (ISession session, IEnumerable< string > ids, IEnumerable< string > usernames=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Block one or more friends by id or username.- Parameters
-
session | The session of the user. |
ids | The ids of the users to block. |
usernames | The usernames of the users to block. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task< IApiGroup > | CreateGroupAsync (ISession session, string name, string description="", string avatarUrl=null, string langTag=null, bool open=true, int maxCount=100, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Create a group.- Parameters
-
session | The session of the user. |
name | The name for the group. |
description | A description for the group. |
avatarUrl | An avatar url for the group. |
langTag | A language tag in BCP-47 format for the group. |
open | If the group should have open membership. |
maxCount | The maximum number of members allowed. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a new group object.
|
|
async Task | DeleteAccountAsync (ISession session, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete the current user's account. Note that this will invalidate your session, requiring you to reauthenticate.- Parameters
-
session | The session of the user. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteFriendsAsync (ISession session, IEnumerable< string > ids, IEnumerable< string > usernames=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete one more or users by id or username from friends.- Parameters
-
session | The session of the user. |
ids | The user ids to remove as friends. |
usernames | The usernames to remove as friends. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteGroupAsync (ISession session, string groupId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete a group by id.- Parameters
-
session | The session of the user. |
groupId | The group id to to remove. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteLeaderboardRecordAsync (ISession session, string leaderboardId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete a leaderboard record.- Parameters
-
session | The session of the user. |
leaderboardId | The id of the leaderboard with the record to be deleted. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteNotificationsAsync (ISession session, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete one or more notifications by id.- Parameters
-
session | The session of the user. |
ids | The notification ids to remove. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteStorageObjectsAsync (ISession session, StorageObjectId[] ids=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete one or more storage objects.- Parameters
-
session | The session of the user. |
ids | The ids of the objects to delete. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DeleteTournamentRecordAsync (ISession session, string tournamentId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Delete the user's tournament record.- Parameters
-
session | The session of the user. |
ids | The id of the tournament to delete from. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | DemoteGroupUsersAsync (ISession session, string groupId, IEnumerable< string > usernames, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Demote a set of users in a group to the next role down. - Parameters
-
groupId | The group to demote users in. |
userIds | The users to demote. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
Members who are already at the lowest rank will be skipped.
|
|
async Task | EventAsync (ISession session, string name, Dictionary< string, string > properties, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Submit an event for processing in the server's registered runtime custom events handler.- Parameters
-
session | The session of the user. |
name | The name of the event. |
properties | The properties of the event. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task< IApiAccount > | GetAccountAsync (ISession session, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Fetch the user account owned by the session.- Parameters
-
session | The session of the user. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the account object.
|
|
async Task< IApiValidatedSubscription > | GetSubscriptionAsync (ISession session, string productId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Get the subscription represented by the provided product id.- Parameters
-
session | The session of the user. |
productId | The product id. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the subscription.
|
|
async Task< IApiUsers > | GetUsersAsync (ISession session, IEnumerable< string > ids, IEnumerable< string > usernames=null, IEnumerable< string > facebookIds=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Fetch one or more users by id, usernames, and Facebook ids.- Parameters
-
session | The session of the user. |
ids | The IDs of the users to retrieve. |
usernames | The usernames of the users to retrieve. |
facebookIds | The facebook IDs of the users to retrieve. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a collection of user objects.
|
|
async Task | ImportFacebookFriendsAsync (ISession session, string token, bool? reset=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Import Facebook friends and add them to the user's account.The server will import friends when the user authenticates with Facebook. This function can be used to be explicit with the import operation.
|
|
async Task | ImportSteamFriendsAsync (ISession session, string token, bool? reset=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Import Steam friends and add them to the user's account.The server will import friends when the user authenticates with Steam. This function can be used to be explicit with the import operation.
|
|
async Task | JoinGroupAsync (ISession session, string groupId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Join a group if it has open membership or request to join it.- Parameters
-
session | The session of the user. |
groupId | The ID of the group to join. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | JoinTournamentAsync (ISession session, string tournamentId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Join a tournament by ID.- Parameters
-
session | The session of the user. |
tournamentId | The ID of the tournament to join. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | KickGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Kick one or more users from the group.- Parameters
-
session | The session of the user. |
groupId | The ID of the group. |
ids | The IDs of the users to kick. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LeaveGroupAsync (ISession session, string groupId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Leave a group by ID.- Parameters
-
session | The session of the user. |
groupId | The ID of the group to leave. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkAppleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link an Apple ID to the social profiles on the current user's account.- Parameters
-
session | The session of the user. |
token | The ID token received from Apple to validate. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkCustomAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a custom ID to the user account owned by the session.- Parameters
-
session | The session of the user. |
id | A custom identifier usually obtained from an external authentication service. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkDeviceAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a device ID to the user account owned by the session.- Parameters
-
session | The session of the user. |
id | A device identifier usually obtained from a platform API. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkEmailAsync (ISession session, string email, string password, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link an email with password to the user account owned by the session.- Parameters
-
session | The session of the user. |
email | The email address of the user. |
password | The password for the user. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkFacebookAsync (ISession session, string token, bool? import=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a Facebook profile to a user account.- Parameters
-
session | The session of the user. |
token | An OAuth access token from the Facebook SDK. |
import | If the Facebook friends should be imported. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkGameCenterAsync (ISession session, string bundleId, string playerId, string publicKeyUrl, string salt, string signature, string timestamp, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a Game Center profile to a user account.- Parameters
-
session | The session of the user. |
bundleId | The bundle ID of the Game Center application. |
playerId | The player ID of the user in Game Center. |
publicKeyUrl | The URL for the public encryption key. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
timestamp | The date and time that the signature was created. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkGoogleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a Google profile to a user account.- Parameters
-
session | The session of the user. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
token | An OAuth access token from the Google SDK. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | LinkSteamAsync (ISession session, string token, bool sync, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Link a Steam profile to a user account.- Parameters
-
session | The session of the user. |
token | An authentication token from the Steam network. |
import | If the Steam friends should be imported. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
Task< IApiChannelMessageList > | ListChannelMessagesAsync (ISession session, IChannel channel, int limit=1, bool forward=true, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List messages from a chat channel.- Parameters
-
session | The session of the user. |
channel | The chat channel object. |
limit | The number of chat messages to list. |
forward | Fetch messages forward from the current cursor (or the start, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). |
cursor | A cursor for the current position in the messages history to list. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the channel message list object.
|
|
async Task< IApiChannelMessageList > | ListChannelMessagesAsync (ISession session, string channelId, int limit=1, bool forward=true, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List messages from a chat channel.- Parameters
-
session | The session of the user. |
channelId | A channel identifier. |
limit | The number of chat messages to list. |
forward | Fetch messages forward from the current cursor (or the start, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). |
cursor | A cursor for the current position in the messages history to list. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the channel message list object.
|
|
async Task< IApiFriendList > | ListFriendsAsync (ISession session, int? state, int limit, string cursor, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List of friends of the current user.- Parameters
-
session | The session of the user. |
state | Filter by friendship state. |
limit | The number of friends to list. |
cursor | A cursor for the current position in the friends list. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the friend objects.
|
|
async Task< IApiGroupUserList > | ListGroupUsersAsync (ISession session, string groupId, int? state, int limit, string cursor, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiGroupList > | ListGroupsAsync (ISession session, string name=null, int limit=1, string cursor=null, string langTag=null, int? members=null, bool? open=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List groups on the server.- Parameters
-
session | The session of the user. |
name | The name filter to apply to the group list. |
limit | The number of groups to list. |
cursor | A cursor for the current position in the groups to list. |
langTag | The language tag filter to apply to the group list. |
members | The number of group members filter to apply to the group list. |
open | The open/closed filter to apply to the group list. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task to resolve group objects.
|
|
async Task< IApiLeaderboardRecordList > | ListLeaderboardRecordsAsync (ISession session, string leaderboardId, IEnumerable< string > ownerIds=null, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiLeaderboardRecordList > | ListLeaderboardRecordsAroundOwnerAsync (ISession session, string leaderboardId, string ownerId, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiMatchList > | ListMatchesAsync (ISession session, int min, int max, int limit, bool authoritative, string label, string query, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Fetch a list of matches active on the server.- Parameters
-
session | The session of the user. |
min | The minimum number of match participants. |
max | The maximum number of match participants. |
limit | The number of matches to list. |
authoritative | If authoritative matches should be included. |
label | The label to filter the match list on. |
query | A query for the matches to filter. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the match list object.
|
|
async Task< IApiNotificationList > | ListNotificationsAsync (ISession session, int limit=1, string cacheableCursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
Task< IApiStorageObjectList > | ListStorageObjects (ISession session, string collection, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiStorageObjectList > | ListStorageObjectsAsync (ISession session, string collection, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List storage objects in a collection which have public read access.- Parameters
-
session | The session of the user. |
collection | The collection to list over. |
limit | The number of objects to list. Maximum 100. |
cursor | A cursor to paginate over the collection. May be null. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the storage object list.
|
|
async Task< IApiSubscriptionList > | ListSubscriptionsAsync (ISession session, int limit, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List the user's subscriptions.- Parameters
-
session | The session of the user. |
limit | The number of subscriptions to list. |
cursor | An optional cursor for the next page of subscriptions. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the subscription list.
|
|
async Task< IApiTournamentRecordList > | ListTournamentRecordsAroundOwnerAsync (ISession session, string tournamentId, string ownerId, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiTournamentRecordList > | ListTournamentRecordsAsync (ISession session, string tournamentId, IEnumerable< string > ownerIds=null, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task< IApiTournamentList > | ListTournamentsAsync (ISession session, int categoryStart, int categoryEnd, int? startTime=null, int? endTime=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List current or upcoming tournaments.- Parameters
-
session | The session of the user. |
categoryStart | The start of the category of tournaments to include. |
categoryEnd | The end of the category of tournaments to include. |
startTime | The start time of the tournaments. (UNIX timestamp, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). If null, tournaments will not be filtered by start time. |
endTime | The end time of the tournaments. (UNIX timestamp, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). If null, tournaments will not be filtered by end time. |
limit | The number of tournaments to list. |
cursor | An optional cursor for the next page of tournaments. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the list of tournament objects.
|
|
Task< IApiUserGroupList > | ListUserGroupsAsync (ISession session, int? state, int limit, string cursor, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List of groups the current user is a member of.- Parameters
-
session | The session of the user. |
state | Filter by group membership state. |
limit | The number of records to list. |
cursor | A cursor for the current position in the listing. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the group list object.
|
|
async Task< IApiUserGroupList > | ListUserGroupsAsync (ISession session, string userId, int? state, int limit, string cursor, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List groups a user is a member of.- Parameters
-
session | The session of the user. |
userId | The ID of the user whose groups to list. |
state | Filter by group membership state. |
limit | The number of records to list. |
cursor | A cursor for the current position in the listing. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the group list object.
|
|
async Task< IApiStorageObjectList > | ListUsersStorageObjectsAsync (ISession session, string collection, string userId, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| List storage objects in a collection which belong to a specific user and have public read access.- Parameters
-
session | The session of the user. |
collection | The collection to list over. |
userId | The user ID of the user to list objects for. |
limit | The number of objects to list. |
cursor | A cursor to paginate over the collection. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the storage object list.
|
|
async Task | PromoteGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Promote one or more users in the group.- Parameters
-
session | The session of the user. |
groupId | The ID of the group to promote users into. |
ids | The IDs of the users to promote. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task< IApiStorageObjects > | ReadStorageObjectsAsync (ISession session, IApiReadStorageObjectId[] ids=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Read one or more objects from the storage engine.- Parameters
-
session | The session of the user. |
ids | The objects to read. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the storage batch object.
|
|
async Task< IApiRpc > | RpcAsync (ISession session, string id, string payload, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Execute a function with an input payload on the server.- Parameters
-
session | The session of the user. |
id | The ID of the function to execute on the server. |
payload | The payload to send with the function call. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the RPC response.
|
|
async Task< IApiRpc > | RpcAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Execute a function on the server.- Parameters
-
session | The session of the user. |
id | The ID of the function to execute on the server. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the RPC response.
|
|
Task< IApiRpc > | RpcAsync (string httpkey, string id, string payload, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Execute a function on the server without a session.This function is usually used with server side code. DO NOT USE client side.
|
|
Task< IApiRpc > | RpcAsync (string httpkey, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Execute a function on the server without a session.This function is usually used with server side code. DO NOT USE client side.
|
|
Task | SessionLogoutAsync (ISession session, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Log out a session which invalidates the authorization and refresh token.- Parameters
-
session | The session to logout. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
Task | SessionLogoutAsync (string authToken, string refreshToken, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Log out a session which optionally invalidates the authorization and/or refresh tokens.- Parameters
-
authToken | The authorization token to invalidate, may be null . |
refreshToken | The refresh token to invalidate, may be null . |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task< ISession > | SessionRefreshAsync (ISession session, Dictionary< string, string > vars=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Refresh the session unless the current refresh token has expired. If vars are specified they will replace what is currently stored inside the session token.- Parameters
-
session | The session of the user. |
vars | Extra information which should be bundled inside the session token. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a new session object.
|
|
override string | ToString () |
|
async Task | UnlinkAppleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Remove the Apple ID from the social profiles on the current user's account.- Parameters
-
session | The session of the user. |
token | The ID token received from Apple. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to a new session object.
|
|
async Task | UnlinkCustomAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a custom ID from the user account owned by the session.- Parameters
-
session | The session of the user. |
id | A custom identifier usually obtained from an external authentication service. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkDeviceAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a device ID from the user account owned by the session.- Parameters
-
session | The session of the user. |
id | A device identifier usually obtained from a platform API. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkEmailAsync (ISession session, string email, string password, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink an email with password from the user account owned by the session.- Parameters
-
session | The session of the user. |
email | The email address of the user. |
password | The password for the user. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkFacebookAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a Facebook profile from the user account owned by the session.- Parameters
-
session | The session of the user. |
token | An OAuth access token from the Facebook SDK. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkGameCenterAsync (ISession session, string bundleId, string playerId, string publicKeyUrl, string salt, string signature, string timestamp, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a Game Center profile from the user account owned by the session.- Parameters
-
session | The session of the user. |
bundleId | The bundle ID of the Game Center application. |
playerId | The player ID of the user in Game Center. |
publicKeyUrl | The URL for the public encryption key. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
timestamp | The date and time that the signature was created. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkGoogleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a Google profile from the user account owned by the session.- Parameters
-
session | The session of the user. |
token | An OAuth access token from the Google SDK. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UnlinkSteamAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Unlink a Steam profile from the user account owned by the session.- Parameters
-
session | The session of the user. |
token | An authentication token from the Steam network. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which represents the asynchronous operation.
|
|
async Task | UpdateAccountAsync (ISession session, string username, string displayName=null, string avatarUrl=null, string langTag=null, string location=null, string timezone=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
|
async Task | UpdateGroupAsync (ISession session, string groupId, string name, bool open, string description=null, string avatarUrl=null, string langTag=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Update a group.The user must have the correct access permissions for the group.
|
|
async Task< IApiValidatePurchaseResponse > | ValidatePurchaseAppleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate a purchase receipt against the Apple App Store.- Parameters
-
session | The session of the user. |
receipt | The purchase receipt to be validated. |
persist | Whether or not to track the receipt in the Nakama database. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the validated list of purchase receipts.
|
|
async Task< IApiValidatePurchaseResponse > | ValidatePurchaseFacebookInstantAsync (ISession session, string signedRequest, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate a purchase receipt against Facebook Instant Games.- Parameters
-
session | The session of the user. |
signedRequest | Base64 encoded Facebook Instant receipt data payload. |
persist | Whether or not to track the receipt in the Nakama database. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the validated list of purchase receipts.
|
|
async Task< IApiValidatePurchaseResponse > | ValidatePurchaseGoogleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate a purchase receipt against the Google Play Store.- Parameters
-
session | The session of the user. |
receipt | The purchase receipt to be validated. |
persist | Whether or not to track the receipt in the Nakama database. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the validated list of purchase receipts.
|
|
async Task< IApiValidatePurchaseResponse > | ValidatePurchaseHuaweiAsync (ISession session, string receipt, string signature, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate a purchase receipt against the Huawei AppGallery.- Parameters
-
session | The session of the user. |
receipt | The purchase receipt to be validated. |
signature | The signature of the purchase receipt. |
persist | Whether or not to track the receipt in the Nakama database. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the validated list of purchase receipts.
|
|
async Task< IApiValidateSubscriptionResponse > | ValidateSubscriptionAppleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate an Apple subscription receipt.
|
|
async Task< IApiValidateSubscriptionResponse > | ValidateSubscriptionGoogleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Validate a Google subscription receipt.
|
|
async Task< IApiLeaderboardRecord > | WriteLeaderboardRecordAsync (ISession session, string leaderboardId, long score, long subScore=0, string metadata=null, ApiOperator apiOperator=ApiOperator.NO_OVERRIDE, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Write a record to a leaderboard.- Parameters
-
session | The session for the user. |
leaderboardId | The ID of the leaderboard to write. |
score | The score for the leaderboard record. |
subScore | The sub score for the leaderboard record. |
metadata | The metadata for the leaderboard record. |
operator | The operator for the record that can be used to override the one set in the leaderboard. - Parameters
-
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the leaderboard record object written.
|
|
|
async Task< IApiStorageObjectAcks > | WriteStorageObjectsAsync (ISession session, IApiWriteStorageObject[] objects=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Write objects to the storage engine.- Parameters
-
session | The session of the user. |
objects | The objects to write. |
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the storage write acknowledgements.
|
|
async Task< IApiLeaderboardRecord > | WriteTournamentRecordAsync (ISession session, string tournamentId, long score, long subScore=0, string metadata=null, ApiOperator apiOperator=ApiOperator.NO_OVERRIDE, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default) |
| Write a record to a tournament.- Parameters
-
session | The session of the user. |
tournamentId | The ID of the tournament to write. |
score | The score of the tournament record. |
subScore | The sub score for the tournament record. |
metadata | The metadata for the tournament record. |
operator | The operator for the record that can be used to override the one set in the tournament. - Parameters
-
retryConfiguration | The retry configuration. See RetryConfiguration |
canceller | The CancellationToken that can be used to cancel the request while mid-flight. |
- Returns
- A task which resolves to the tournament record object written.
|
|
|