Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
Loading...
Searching...
No Matches
Nakama.IClient Interface Reference

A client for the API in Nakama server. More...

Inheritance diagram for Nakama.IClient:
Nakama.Client

Public Member Functions

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.
 
Task AddGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Add one or more users to the group.
 
Task< ISessionAuthenticateAppleAsync (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.
 
Task< ISessionAuthenticateCustomAsync (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.
 
Task< ISessionAuthenticateDeviceAsync (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.
 
Task< ISessionAuthenticateEmailAsync (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.
 
Task< ISessionAuthenticateFacebookAsync (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.
 
Task< ISessionAuthenticateGameCenterAsync (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.
 
Task< ISessionAuthenticateGoogleAsync (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.
 
Task< ISessionAuthenticateSteamAsync (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.
 
Task BanGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Ban a set of users from a group.
 
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.
 
Task< IApiGroupCreateGroupAsync (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.
 
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.
 
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.
 
Task DeleteGroupAsync (ISession session, string groupId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Delete a group by id.
 
Task DeleteLeaderboardRecordAsync (ISession session, string leaderboardId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Delete a leaderboard record.
 
Task DeleteNotificationsAsync (ISession session, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Delete one or more notifications by id.
 
Task DeleteStorageObjectsAsync (ISession session, StorageObjectId[] ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Delete one or more storage objects.
 
Task DeleteTournamentRecordAsync (ISession session, string tournamentId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Delete the user's tournament record.
 
Task DemoteGroupUsersAsync (ISession session, string groupId, IEnumerable< string > userIds, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Demote a set of users in a group to the next role down.

Parameters
groupIdThe group to demote users in.
userIdsThe users to demote.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.

 
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.
 
Task< IApiAccountGetAccountAsync (ISession session, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Fetch the user account owned by the session.
 
Task< IApiValidatedSubscriptionGetSubscriptionAsync (ISession session, string productId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Get the subscription represented by the provided product id.
 
Task< IApiUsersGetUsersAsync (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.
 
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.
 
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.
 
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.
 
Task JoinTournamentAsync (ISession session, string tournamentId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Join a tournament by ID.
 
Task KickGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Kick one or more users from the group.
 
Task LeaveGroupAsync (ISession session, string groupId, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Leave a group by ID.
 
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.
 
Task LinkCustomAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Link a custom ID to the user account owned by the session.
 
Task LinkDeviceAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Link a device ID to the user account owned by the session.
 
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.
 
Task LinkFacebookAsync (ISession session, string token, bool? import=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Link a Facebook profile to a user account.
 
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.
 
Task LinkGoogleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Link a Google profile to a user account.
 
Task LinkSteamAsync (ISession session, string token, bool import, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Link a Steam profile to a user account.
 
Task< IApiChannelMessageListListChannelMessagesAsync (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.
 
Task< IApiChannelMessageListListChannelMessagesAsync (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.
 
Task< IApiFriendListListFriendsAsync (ISession session, int? state=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List of friends of the current user.
 
Task< IApiGroupUserListListGroupUsersAsync (ISession session, string groupId, int? state=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List all users part of the group.
 
Task< IApiGroupListListGroupsAsync (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.
 
Task< IApiLeaderboardRecordListListLeaderboardRecordsAsync (ISession session, string leaderboardId, IEnumerable< string > ownerIds=null, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List records from a leaderboard.
 
Task< IApiLeaderboardRecordListListLeaderboardRecordsAroundOwnerAsync (ISession session, string leaderboardId, string ownerId, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List leaderboard records that belong to a user.
 
Task< IApiMatchListListMatchesAsync (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.
 
Task< IApiNotificationListListNotificationsAsync (ISession session, int limit=1, string cacheableCursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List notifications for the user with an optional cursor.
 
Task< IApiStorageObjectListListStorageObjects (ISession session, string collection, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 
Task< IApiStorageObjectListListStorageObjectsAsync (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.
 
Task< IApiSubscriptionListListSubscriptionsAsync (ISession session, int limit, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List the user's subscriptions.
 
Task< IApiTournamentRecordListListTournamentRecordsAroundOwnerAsync (ISession session, string tournamentId, string ownerId, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List tournament records around the owner.
 
Task< IApiTournamentRecordListListTournamentRecordsAsync (ISession session, string tournamentId, IEnumerable< string > ownerIds=null, long? expiry=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List records from a tournament.
 
Task< IApiTournamentListListTournamentsAsync (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.
 
Task< IApiUserGroupListListUserGroupsAsync (ISession session, int? state=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List of groups the current user is a member of.
 
Task< IApiUserGroupListListUserGroupsAsync (ISession session, string userId, int? state=null, int limit=1, string cursor=null, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 List groups a user is a member of.
 
Task< IApiStorageObjectListListUsersStorageObjectsAsync (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.
 
Task PromoteGroupUsersAsync (ISession session, string groupId, IEnumerable< string > ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Promote one or more users in the group.
 
Task< IApiStorageObjectsReadStorageObjectsAsync (ISession session, IApiReadStorageObjectId[] ids, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Read one or more objects from the storage engine.
 
Task< IApiRpcRpcAsync (ISession session, string id, string payload, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Execute a function with an input payload on the server.
 
Task< IApiRpcRpcAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Execute a function on the server.
 
Task< IApiRpcRpcAsync (string httpKey, string id, string payload, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Execute a function on the server without a session.
 
Task< IApiRpcRpcAsync (string httpKey, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Execute a function on the server without a session.
 
Task SessionLogoutAsync (ISession session, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Log out a session which invalidates the authorization and refresh token.
 
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.
 
Task< ISessionSessionRefreshAsync (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.
 
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.
 
Task UnlinkCustomAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Unlink a custom ID from the user account owned by the session.
 
Task UnlinkDeviceAsync (ISession session, string id, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Unlink a device ID from the user account owned by the session.
 
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.
 
Task UnlinkFacebookAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Unlink a Facebook profile from the user account owned by the session.
 
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.
 
Task UnlinkGoogleAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Unlink a Google profile from the user account owned by the session.
 
Task UnlinkSteamAsync (ISession session, string token, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Unlink a Steam profile from the user account owned by the session.
 
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)
 Update the current user's account on the server.
 
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.
 
Task< IApiValidatePurchaseResponseValidatePurchaseAppleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate a purchase receipt against the Apple App Store.
 
Task< IApiValidatePurchaseResponseValidatePurchaseFacebookInstantAsync (ISession session, string signedRequest, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate a purchase receipt against Facebook Instant Games.
 
Task< IApiValidatePurchaseResponseValidatePurchaseGoogleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate a purchase receipt against the Google Play Store.
 
Task< IApiValidatePurchaseResponseValidatePurchaseHuaweiAsync (ISession session, string receipt, string signature, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate a purchase receipt against the Huawei AppGallery.
 
Task< IApiValidateSubscriptionResponseValidateSubscriptionAppleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate an Apple subscription receipt.
 
Task< IApiValidateSubscriptionResponseValidateSubscriptionGoogleAsync (ISession session, string receipt, bool persist=true, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Validate a Google subscription receipt.
 
Task< IApiLeaderboardRecordWriteLeaderboardRecordAsync (ISession session, string leaderboardId, long score, long subScore=0L, string metadata=null, ApiOperator apiOperator=ApiOperator.NO_OVERRIDE, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Write a record to a leaderboard.
 
Task< IApiStorageObjectAcksWriteStorageObjectsAsync (ISession session, IApiWriteStorageObject[] objects, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Write objects to the storage engine.
 
Task< IApiLeaderboardRecordWriteTournamentRecordAsync (ISession session, string tournamentId, long score, long subScore=0L, string metadata=null, ApiOperator apiOperator=ApiOperator.NO_OVERRIDE, RetryConfiguration retryConfiguration=null, CancellationToken canceller=default)
 Write a record to a tournament.
 

Properties

bool AutoRefreshSession [get]
 True if the session should be refreshed with an active refresh token.
 
RetryConfiguration GlobalRetryConfiguration [get, set]
 The global retry configuration. See RetryConfiguration.
 
string Host [get]
 The host address of the server. Defaults to "127.0.0.1".
 
int Port [get]
 The port number of the server. Defaults to 7350.
 
string Scheme [get]
 The protocol scheme used to connect with the server. Must be either "http" or "https".
 
string ServerKey [get]
 The key used to authenticate with the server without a session. Defaults to "defaultkey".
 
int Timeout [get, set]
 Set the timeout in seconds on requests sent to the server.
 
ILogger Logger [get, set]
 The logger to use with the client.
 

Detailed Description

A client for the API in Nakama server.

Member Function Documentation

◆ AddFriendsAsync()

Task Nakama.IClient.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
sessionThe session of the user.
idsThe ids of the users to add or invite as friends.
usernamesThe usernames of the users to add as friends.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ AddGroupUsersAsync()

Task Nakama.IClient.AddGroupUsersAsync ( ISession  session,
string  groupId,
IEnumerable< string >  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Add one or more users to the group.

Parameters
sessionThe session of the user.
groupIdThe id of the group to add users into.
idsThe ids of the users to add or invite to the group.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ AuthenticateAppleAsync()

Task< ISession > Nakama.IClient.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
usernameA username used to create the user.
tokenThe ID token received from Apple to validate.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateCustomAsync()

Task< ISession > Nakama.IClient.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
idA custom identifier usually obtained from an external authentication service.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateDeviceAsync()

Task< ISession > Nakama.IClient.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
idA device identifier usually obtained from a platform API.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateEmailAsync()

Task< ISession > Nakama.IClient.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
emailThe email address of the user.
passwordThe password for the user.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateFacebookAsync()

Task< ISession > Nakama.IClient.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
tokenAn OAuth access token from the Facebook SDK.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
importIf the Facebook friends should be imported.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateGameCenterAsync()

Task< ISession > Nakama.IClient.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
bundleIdThe bundle id of the Game Center application.
playerIdThe player id of the user in Game Center.
publicKeyUrlThe URL for the public encryption key.
saltA random NSString used to compute the hash and keep it randomized.
signatureThe verification signature data generated.
timestampThe date and time that the signature was created.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateGoogleAsync()

Task< ISession > Nakama.IClient.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
tokenAn OAuth access token from the Google SDK.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ AuthenticateSteamAsync()

Task< ISession > Nakama.IClient.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
tokenAn authentication token from the Steam network.
usernameA username used to create the user. May be null.
createIf the user should be created when authenticated.
varsExtra information that will be bundled in the session token.
importIf the Steam friends should be imported.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a session object.

Implemented in Nakama.Client.

◆ BanGroupUsersAsync()

Task Nakama.IClient.BanGroupUsersAsync ( ISession  session,
string  groupId,
IEnumerable< string >  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Ban a set of users from a group.

Parameters
sessionThe session of the user.
groupIdThe group to ban the users from.
idsThe ids of the users to ban.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ BlockFriendsAsync()

Task Nakama.IClient.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
sessionThe session of the user.
idsThe ids of the users to block.
usernamesThe usernames of the users to block.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ CreateGroupAsync()

Task< IApiGroup > Nakama.IClient.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
sessionThe session of the user.
nameThe name for the group.
descriptionA description for the group.
avatarUrlAn avatar url for the group.
langTagA language tag in BCP-47 format for the group.
openIf the group should have open membership.
maxCountThe maximum number of members allowed.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a new group object.

Implemented in Nakama.Client.

◆ DeleteAccountAsync()

Task Nakama.IClient.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
sessionThe session of the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteFriendsAsync()

Task Nakama.IClient.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
sessionThe session of the user.
idsThe user ids to remove as friends.
usernamesThe usernames to remove as friends.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteGroupAsync()

Task Nakama.IClient.DeleteGroupAsync ( ISession  session,
string  groupId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Delete a group by id.

Parameters
sessionThe session of the user.
groupIdThe group id to to remove.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteLeaderboardRecordAsync()

Task Nakama.IClient.DeleteLeaderboardRecordAsync ( ISession  session,
string  leaderboardId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Delete a leaderboard record.

Parameters
sessionThe session of the user.
leaderboardIdThe id of the leaderboard with the record to be deleted.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteNotificationsAsync()

Task Nakama.IClient.DeleteNotificationsAsync ( ISession  session,
IEnumerable< string >  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Delete one or more notifications by id.

Parameters
sessionThe session of the user.
idsThe notification ids to remove.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteStorageObjectsAsync()

Task Nakama.IClient.DeleteStorageObjectsAsync ( ISession  session,
StorageObjectId[]  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Delete one or more storage objects.

Parameters
sessionThe session of the user.
idsThe ids of the objects to delete.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DeleteTournamentRecordAsync()

Task Nakama.IClient.DeleteTournamentRecordAsync ( ISession  session,
string  tournamentId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Delete the user's tournament record.

Parameters
sessionThe session of the user.
idsThe id of the tournament to delete from.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ DemoteGroupUsersAsync()

Task Nakama.IClient.DemoteGroupUsersAsync ( ISession  session,
string  groupId,
IEnumerable< string >  userIds,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Demote a set of users in a group to the next role down.

Parameters
groupIdThe group to demote users in.
userIdsThe users to demote.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.

Members who are already at the lowest rank will be skipped.

Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ EventAsync()

Task Nakama.IClient.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
sessionThe session of the user.
nameThe name of the event.
propertiesThe properties of the event.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ GetAccountAsync()

Task< IApiAccount > Nakama.IClient.GetAccountAsync ( ISession  session,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Fetch the user account owned by the session.

Parameters
sessionThe session of the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the account object.

Implemented in Nakama.Client.

◆ GetSubscriptionAsync()

Task< IApiValidatedSubscription > Nakama.IClient.GetSubscriptionAsync ( ISession  session,
string  productId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Get the subscription represented by the provided product id.

Parameters
sessionThe session of the user.
productIdThe product id.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the subscription.

Implemented in Nakama.Client.

◆ GetUsersAsync()

Task< IApiUsers > Nakama.IClient.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
sessionThe session of the user.
idsThe IDs of the users to retrieve.
usernamesThe usernames of the users to retrieve.
facebookIdsThe facebook IDs of the users to retrieve.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a collection of user objects.

Implemented in Nakama.Client.

◆ ImportFacebookFriendsAsync()

Task Nakama.IClient.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.

Parameters
sessionThe session of the user.
tokenAn OAuth access token from the Facebook SDK.
resetIf the Facebook friend import for the user should be reset.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ ImportSteamFriendsAsync()

Task Nakama.IClient.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.

Parameters
sessionThe session of the user.
tokenAn access token from Steam.
resetIf the Steam friend import for the user should be reset.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ JoinGroupAsync()

Task Nakama.IClient.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
sessionThe session of the user.
groupIdThe ID of the group to join.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ JoinTournamentAsync()

Task Nakama.IClient.JoinTournamentAsync ( ISession  session,
string  tournamentId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Join a tournament by ID.

Parameters
sessionThe session of the user.
tournamentIdThe ID of the tournament to join.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ KickGroupUsersAsync()

Task Nakama.IClient.KickGroupUsersAsync ( ISession  session,
string  groupId,
IEnumerable< string >  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Kick one or more users from the group.

Parameters
sessionThe session of the user.
groupIdThe ID of the group.
idsThe IDs of the users to kick.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LeaveGroupAsync()

Task Nakama.IClient.LeaveGroupAsync ( ISession  session,
string  groupId,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Leave a group by ID.

Parameters
sessionThe session of the user.
groupIdThe ID of the group to leave.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkAppleAsync()

Task Nakama.IClient.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
sessionThe session of the user.
tokenThe ID token received from Apple to validate.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkCustomAsync()

Task Nakama.IClient.LinkCustomAsync ( ISession  session,
string  id,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Link a custom ID to the user account owned by the session.

Parameters
sessionThe session of the user.
idA custom identifier usually obtained from an external authentication service.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkDeviceAsync()

Task Nakama.IClient.LinkDeviceAsync ( ISession  session,
string  id,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Link a device ID to the user account owned by the session.

Parameters
sessionThe session of the user.
idA device identifier usually obtained from a platform API.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkEmailAsync()

Task Nakama.IClient.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
sessionThe session of the user.
emailThe email address of the user.
passwordThe password for the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkFacebookAsync()

Task Nakama.IClient.LinkFacebookAsync ( ISession  session,
string  token,
bool?  import = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Link a Facebook profile to a user account.

Parameters
sessionThe session of the user.
tokenAn OAuth access token from the Facebook SDK.
importIf the Facebook friends should be imported.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkGameCenterAsync()

Task Nakama.IClient.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
sessionThe session of the user.
bundleIdThe bundle ID of the Game Center application.
playerIdThe player ID of the user in Game Center.
publicKeyUrlThe URL for the public encryption key.
saltA random NSString used to compute the hash and keep it randomized.
signatureThe verification signature data generated.
timestampThe date and time that the signature was created.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkGoogleAsync()

Task Nakama.IClient.LinkGoogleAsync ( ISession  session,
string  token,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Link a Google profile to a user account.

Parameters
sessionThe session of the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
tokenAn OAuth access token from the Google SDK.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ LinkSteamAsync()

Task Nakama.IClient.LinkSteamAsync ( ISession  session,
string  token,
bool  import,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Link a Steam profile to a user account.

Parameters
sessionThe session of the user.
tokenAn authentication token from the Steam network.
importIf the Steam friends should be imported.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ ListChannelMessagesAsync() [1/2]

Task< IApiChannelMessageList > Nakama.IClient.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
sessionThe session of the user.
channelThe chat channel object.
limitThe number of chat messages to list.
forwardFetch messages forward from the current cursor (or the start, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default).
cursorA cursor for the current position in the messages history to list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the channel message list object.

Implemented in Nakama.Client.

◆ ListChannelMessagesAsync() [2/2]

Task< IApiChannelMessageList > Nakama.IClient.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
sessionThe session of the user.
channelIdA channel identifier.
limitThe number of chat messages to list.
forwardFetch messages forward from the current cursor (or the start, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default).
cursorA cursor for the current position in the messages history to list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the channel message list object.

Implemented in Nakama.Client.

◆ ListFriendsAsync()

Task< IApiFriendList > Nakama.IClient.ListFriendsAsync ( ISession  session,
int?  state = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List of friends of the current user.

Parameters
sessionThe session of the user.
stateFilter by friendship state.
limitThe number of friends to list.
cursorA cursor for the current position in the friends list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the friend objects.

Implemented in Nakama.Client.

◆ ListGroupsAsync()

Task< IApiGroupList > Nakama.IClient.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
sessionThe session of the user.
nameThe name filter to apply to the group list.
limitThe number of groups to list.
cursorA cursor for the current position in the groups to list.
langTagThe language tag filter to apply to the group list.
membersThe number of group members filter to apply to the group list.
openThe open/closed filter to apply to the group list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task to resolve group objects.

Implemented in Nakama.Client.

◆ ListGroupUsersAsync()

Task< IApiGroupUserList > Nakama.IClient.ListGroupUsersAsync ( ISession  session,
string  groupId,
int?  state = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List all users part of the group.

Parameters
sessionThe session of the user.
groupIdThe ID of the group.
stateFilter by group membership state.
limitThe number of groups to list.
cursorA cursor for the current position in the group listing.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the group user objects.

Implemented in Nakama.Client.

◆ ListLeaderboardRecordsAroundOwnerAsync()

Task< IApiLeaderboardRecordList > Nakama.IClient.ListLeaderboardRecordsAroundOwnerAsync ( ISession  session,
string  leaderboardId,
string  ownerId,
long?  expiry = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List leaderboard records that belong to a user.

Parameters
sessionThe session for the user.
leaderboardIdThe ID of the leaderboard to list.
ownerIdThe ID of the user to list around.
expiryExpiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
limitThe limit of the listings.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the leaderboard record objects.

Implemented in Nakama.Client.

◆ ListLeaderboardRecordsAsync()

Task< IApiLeaderboardRecordList > Nakama.IClient.ListLeaderboardRecordsAsync ( ISession  session,
string  leaderboardId,
IEnumerable< string >  ownerIds = null,
long?  expiry = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List records from a leaderboard.

Parameters
sessionThe session of the user.
leaderboardIdThe ID of the leaderboard to list.
ownerIdsRecord owners to fetch with the list of records.
expiryExpiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
limitThe number of records to list.
cursorA cursor for the current position in the leaderboard records to list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the leaderboard record objects.

Implemented in Nakama.Client.

◆ ListMatchesAsync()

Task< IApiMatchList > Nakama.IClient.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
sessionThe session of the user.
minThe minimum number of match participants.
maxThe maximum number of match participants.
limitThe number of matches to list.
authoritativeIf authoritative matches should be included.
labelThe label to filter the match list on.
queryA query for the matches to filter.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the match list object.

Implemented in Nakama.Client.

◆ ListNotificationsAsync()

Task< IApiNotificationList > Nakama.IClient.ListNotificationsAsync ( ISession  session,
int  limit = 1,
string  cacheableCursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List notifications for the user with an optional cursor.

Parameters
sessionThe session of the user.
limitThe number of notifications to list.
cacheableCursorA cursor for the current position in notifications to list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task to resolve notifications objects.

Implemented in Nakama.Client.

◆ ListStorageObjects()

Task< IApiStorageObjectList > Nakama.IClient.ListStorageObjects ( ISession  session,
string  collection,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Implemented in Nakama.Client.

◆ ListStorageObjectsAsync()

Task< IApiStorageObjectList > Nakama.IClient.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
sessionThe session of the user.
collectionThe collection to list over.
limitThe number of objects to list. Maximum 100.
cursorA cursor to paginate over the collection. May be null.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the storage object list.

Implemented in Nakama.Client.

◆ ListSubscriptionsAsync()

Task< IApiSubscriptionList > Nakama.IClient.ListSubscriptionsAsync ( ISession  session,
int  limit,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List the user's subscriptions.

Parameters
sessionThe session of the user.
limitThe number of subscriptions to list.
cursorAn optional cursor for the next page of subscriptions.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the subscription list.

Implemented in Nakama.Client.

◆ ListTournamentRecordsAroundOwnerAsync()

Task< IApiTournamentRecordList > Nakama.IClient.ListTournamentRecordsAroundOwnerAsync ( ISession  session,
string  tournamentId,
string  ownerId,
long?  expiry = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List tournament records around the owner.

Parameters
sessionThe session of the user.
tournamentIdThe ID of the tournament.
ownerIdThe ID of the owner to pivot around.
expiryExpiry in seconds (since epoch) to begin fetching records from.
limitThe number of records to list.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the tournament record list object.

Implemented in Nakama.Client.

◆ ListTournamentRecordsAsync()

Task< IApiTournamentRecordList > Nakama.IClient.ListTournamentRecordsAsync ( ISession  session,
string  tournamentId,
IEnumerable< string >  ownerIds = null,
long?  expiry = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List records from a tournament.

Parameters
sessionThe session of the user.
tournamentIdThe ID of the tournament.
ownerIdsThe IDs of the record owners to return in the result.
expiryExpiry in seconds (since epoch) to begin fetching records from.
limitThe number of records to list.
cursorAn optional cursor for the next page of tournament records.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the list of tournament records.

Implemented in Nakama.Client.

◆ ListTournamentsAsync()

Task< IApiTournamentList > Nakama.IClient.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
sessionThe session of the user.
categoryStartThe start of the category of tournaments to include.
categoryEndThe end of the category of tournaments to include.
startTimeThe start time of the tournaments. (UNIX timestamp, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). If null, tournaments will not be filtered by start time.
endTimeThe end time of the tournaments. (UNIX timestamp, RetryConfiguration retryConfiguration = null, CancellationToken canceller = default). If null, tournaments will not be filtered by end time.
limitThe number of tournaments to list.
cursorAn optional cursor for the next page of tournaments.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the list of tournament objects.

Implemented in Nakama.Client.

◆ ListUserGroupsAsync() [1/2]

Task< IApiUserGroupList > Nakama.IClient.ListUserGroupsAsync ( ISession  session,
int?  state = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List of groups the current user is a member of.

Parameters
sessionThe session of the user.
stateFilter by group membership state.
limitThe number of records to list.
cursorA cursor for the current position in the listing.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the group list object.

Implemented in Nakama.Client.

◆ ListUserGroupsAsync() [2/2]

Task< IApiUserGroupList > Nakama.IClient.ListUserGroupsAsync ( ISession  session,
string  userId,
int?  state = null,
int  limit = 1,
string  cursor = null,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

List groups a user is a member of.

Parameters
sessionThe session of the user.
userIdThe ID of the user whose groups to list.
stateFilter by group membership state.
limitThe number of records to list.
cursorA cursor for the current position in the listing.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the group list object.

Implemented in Nakama.Client.

◆ ListUsersStorageObjectsAsync()

Task< IApiStorageObjectList > Nakama.IClient.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
sessionThe session of the user.
collectionThe collection to list over.
userIdThe user ID of the user to list objects for.
limitThe number of objects to list.
cursorA cursor to paginate over the collection.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the storage object list.

Implemented in Nakama.Client.

◆ PromoteGroupUsersAsync()

Task Nakama.IClient.PromoteGroupUsersAsync ( ISession  session,
string  groupId,
IEnumerable< string >  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Promote one or more users in the group.

Parameters
sessionThe session of the user.
groupIdThe ID of the group to promote users into.
idsThe IDs of the users to promote.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ ReadStorageObjectsAsync()

Task< IApiStorageObjects > Nakama.IClient.ReadStorageObjectsAsync ( ISession  session,
IApiReadStorageObjectId[]  ids,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Read one or more objects from the storage engine.

Parameters
sessionThe session of the user.
idsThe objects to read.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the storage batch object.

Implemented in Nakama.Client.

◆ RpcAsync() [1/4]

Task< IApiRpc > Nakama.IClient.RpcAsync ( ISession  session,
string  id,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Execute a function on the server.

Parameters
sessionThe session of the user.
idThe ID of the function to execute on the server.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the RPC response.

Implemented in Nakama.Client.

◆ RpcAsync() [2/4]

Task< IApiRpc > Nakama.IClient.RpcAsync ( ISession  session,
string  id,
string  payload,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Execute a function with an input payload on the server.

Parameters
sessionThe session of the user.
idThe ID of the function to execute on the server.
payloadThe payload to send with the function call.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the RPC response.

Implemented in Nakama.Client.

◆ RpcAsync() [3/4]

Task< IApiRpc > Nakama.IClient.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.

Parameters
httpKeyThe secure HTTP key used to authenticate.
idThe id of the function to execute on the server.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task to resolve an RPC response.

Implemented in Nakama.Client.

◆ RpcAsync() [4/4]

Task< IApiRpc > Nakama.IClient.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.

Parameters
httpKeyThe secure HTTP key used to authenticate.
idThe id of the function to execute on the server.
payloadA payload to send with the function call.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task to resolve an RPC response.

Implemented in Nakama.Client.

◆ SessionLogoutAsync() [1/2]

Task Nakama.IClient.SessionLogoutAsync ( ISession  session,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Log out a session which invalidates the authorization and refresh token.

Parameters
sessionThe session to logout.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ SessionLogoutAsync() [2/2]

Task Nakama.IClient.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
authTokenThe authorization token to invalidate, may be null.
refreshTokenThe refresh token to invalidate, may be null.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ SessionRefreshAsync()

Task< ISession > Nakama.IClient.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
sessionThe session of the user.
varsExtra information which should be bundled inside the session token.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a new session object.

Implemented in Nakama.Client.

◆ UnlinkAppleAsync()

Task Nakama.IClient.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
sessionThe session of the user.
tokenThe ID token received from Apple.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to a new session object.

Implemented in Nakama.Client.

◆ UnlinkCustomAsync()

Task Nakama.IClient.UnlinkCustomAsync ( ISession  session,
string  id,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Unlink a custom ID from the user account owned by the session.

Parameters
sessionThe session of the user.
idA custom identifier usually obtained from an external authentication service.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkDeviceAsync()

Task Nakama.IClient.UnlinkDeviceAsync ( ISession  session,
string  id,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Unlink a device ID from the user account owned by the session.

Parameters
sessionThe session of the user.
idA device identifier usually obtained from a platform API.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkEmailAsync()

Task Nakama.IClient.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
sessionThe session of the user.
emailThe email address of the user.
passwordThe password for the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkFacebookAsync()

Task Nakama.IClient.UnlinkFacebookAsync ( ISession  session,
string  token,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Unlink a Facebook profile from the user account owned by the session.

Parameters
sessionThe session of the user.
tokenAn OAuth access token from the Facebook SDK.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkGameCenterAsync()

Task Nakama.IClient.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
sessionThe session of the user.
bundleIdThe bundle ID of the Game Center application.
playerIdThe player ID of the user in Game Center.
publicKeyUrlThe URL for the public encryption key.
saltA random NSString used to compute the hash and keep it randomized.
signatureThe verification signature data generated.
timestampThe date and time that the signature was created.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkGoogleAsync()

Task Nakama.IClient.UnlinkGoogleAsync ( ISession  session,
string  token,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Unlink a Google profile from the user account owned by the session.

Parameters
sessionThe session of the user.
tokenAn OAuth access token from the Google SDK.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UnlinkSteamAsync()

Task Nakama.IClient.UnlinkSteamAsync ( ISession  session,
string  token,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Unlink a Steam profile from the user account owned by the session.

Parameters
sessionThe session of the user.
tokenAn authentication token from the Steam network.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UpdateAccountAsync()

Task Nakama.IClient.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 
)

Update the current user's account on the server.

Parameters
sessionThe session for the user.
usernameThe new username for the user.
displayNameA new display name for the user.
avatarUrlA new avatar url for the user.
langTagA new language tag in BCP-47 format for the user.
locationA new location for the user.
timezoneNew timezone information for the user.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ UpdateGroupAsync()

Task Nakama.IClient.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.

Parameters
sessionThe session of the user.
groupIdThe ID of the group to update.
nameA new name for the group.
openIf the group should have open membership.
descriptionA new description for the group.
avatarUrlA new avatar url for the group.
langTagA new language tag in BCP-47 format for the group.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which represents the asynchronous operation.

Implemented in Nakama.Client.

◆ ValidatePurchaseAppleAsync()

Task< IApiValidatePurchaseResponse > Nakama.IClient.ValidatePurchaseAppleAsync ( ISession  session,
string  receipt,
bool  persist = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Validate a purchase receipt against the Apple App Store.

Parameters
sessionThe session of the user.
receiptThe purchase receipt to be validated.
persistWhether or not to track the receipt in the Nakama database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the validated list of purchase receipts.

Implemented in Nakama.Client.

◆ ValidatePurchaseFacebookInstantAsync()

Task< IApiValidatePurchaseResponse > Nakama.IClient.ValidatePurchaseFacebookInstantAsync ( ISession  session,
string  signedRequest,
bool  persist = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Validate a purchase receipt against Facebook Instant Games.

Parameters
sessionThe session of the user.
signedRequestBase64 encoded Facebook Instant receipt data payload.
persistWhether or not to track the receipt in the Nakama database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the validated list of purchase receipts.

Implemented in Nakama.Client.

◆ ValidatePurchaseGoogleAsync()

Task< IApiValidatePurchaseResponse > Nakama.IClient.ValidatePurchaseGoogleAsync ( ISession  session,
string  receipt,
bool  persist = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Validate a purchase receipt against the Google Play Store.

Parameters
sessionThe session of the user.
receiptThe purchase receipt to be validated.
persistWhether or not to track the receipt in the Nakama database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the validated list of purchase receipts.

Implemented in Nakama.Client.

◆ ValidatePurchaseHuaweiAsync()

Task< IApiValidatePurchaseResponse > Nakama.IClient.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
sessionThe session of the user.
receiptThe purchase receipt to be validated.
signatureThe signature of the purchase receipt.
persistWhether or not to track the receipt in the Nakama database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the validated list of purchase receipts.

Implemented in Nakama.Client.

◆ ValidateSubscriptionAppleAsync()

Task< IApiValidateSubscriptionResponse > Nakama.IClient.ValidateSubscriptionAppleAsync ( ISession  session,
string  receipt,
bool  persist = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Validate an Apple subscription receipt.

Parameters
sessionThe session of the user.
receiptThe receipt to validate.
persistWhether or not to persist the receipt to Nakama's database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the subscription validation response.

Implemented in Nakama.Client.

◆ ValidateSubscriptionGoogleAsync()

Task< IApiValidateSubscriptionResponse > Nakama.IClient.ValidateSubscriptionGoogleAsync ( ISession  session,
string  receipt,
bool  persist = true,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Validate a Google subscription receipt.

Parameters
sessionThe session of the user.
receiptThe receipt to validate.
persistWhether or not to persist the receipt to Nakama's database.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the subscription validation response.

Implemented in Nakama.Client.

◆ WriteLeaderboardRecordAsync()

Task< IApiLeaderboardRecord > Nakama.IClient.WriteLeaderboardRecordAsync ( ISession  session,
string  leaderboardId,
long  score,
long  subScore = 0L,
string  metadata = null,
ApiOperator  apiOperator = ApiOperator.NO_OVERRIDE,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Write a record to a leaderboard.

Parameters
sessionThe session for the user.
leaderboardIdThe ID of the leaderboard to write.
scoreThe score for the leaderboard record.
subScoreThe sub score for the leaderboard record.
metadataThe metadata for the leaderboard record.
operatorThe operator for the record that can be used to override the one set in the leaderboard.
Parameters
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the leaderboard record object written.

Implemented in Nakama.Client.

◆ WriteStorageObjectsAsync()

Task< IApiStorageObjectAcks > Nakama.IClient.WriteStorageObjectsAsync ( ISession  session,
IApiWriteStorageObject[]  objects,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Write objects to the storage engine.

Parameters
sessionThe session of the user.
objectsThe objects to write.
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the storage write acknowledgements.

Implemented in Nakama.Client.

◆ WriteTournamentRecordAsync()

Task< IApiLeaderboardRecord > Nakama.IClient.WriteTournamentRecordAsync ( ISession  session,
string  tournamentId,
long  score,
long  subScore = 0L,
string  metadata = null,
ApiOperator  apiOperator = ApiOperator.NO_OVERRIDE,
RetryConfiguration  retryConfiguration = null,
CancellationToken  canceller = default 
)

Write a record to a tournament.

Parameters
sessionThe session of the user.
tournamentIdThe ID of the tournament to write.
scoreThe score of the tournament record.
subScoreThe sub score for the tournament record.
metadataThe metadata for the tournament record.
operatorThe operator for the record that can be used to override the one set in the tournament.
Parameters
retryConfigurationThe retry configuration. See RetryConfiguration
cancellerThe CancellationToken that can be used to cancel the request while mid-flight.
Returns
A task which resolves to the tournament record object written.

Implemented in Nakama.Client.

Property Documentation

◆ AutoRefreshSession

bool Nakama.IClient.AutoRefreshSession
get

True if the session should be refreshed with an active refresh token.

Implemented in Nakama.Client.

◆ GlobalRetryConfiguration

RetryConfiguration Nakama.IClient.GlobalRetryConfiguration
getset

The global retry configuration. See RetryConfiguration.

Implemented in Nakama.Client.

◆ Host

string Nakama.IClient.Host
get

The host address of the server. Defaults to "127.0.0.1".

Implemented in Nakama.Client.

◆ Logger

ILogger Nakama.IClient.Logger
getset

The logger to use with the client.

Implemented in Nakama.Client.

◆ Port

int Nakama.IClient.Port
get

The port number of the server. Defaults to 7350.

Implemented in Nakama.Client.

◆ Scheme

string Nakama.IClient.Scheme
get

The protocol scheme used to connect with the server. Must be either "http" or "https".

Implemented in Nakama.Client.

◆ ServerKey

string Nakama.IClient.ServerKey
get

The key used to authenticate with the server without a session. Defaults to "defaultkey".

Implemented in Nakama.Client.

◆ Timeout

int Nakama.IClient.Timeout
getset

Set the timeout in seconds on requests sent to the server.

Implemented in Nakama.Client.


The documentation for this interface was generated from the following file: