![]() |
Nakama C++ Client SDK 2.5.1
Client for Nakama Server
|
#include <NClientInterface.h>
Public Member Functions | |
virtual | ~NClientInterface () |
virtual void | setErrorCallback (ErrorCallback errorCallback)=0 |
virtual void | setUserData (void *userData)=0 |
virtual void * | getUserData () const =0 |
virtual void | disconnect ()=0 |
virtual void | tick ()=0 |
virtual NRtClientPtr | createRtClient (int32_t port=DEFAULT_PORT, NRtTransportPtr transport=nullptr)=0 |
virtual NRtClientPtr | createRtClient (const RtClientParameters ¶meters, NRtTransportPtr transport=nullptr)=0 |
virtual void | authenticateDevice (const std::string &id, const opt::optional< std::string > &username=opt::nullopt, const opt::optional< bool > &create=opt::nullopt, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateEmail (const std::string &email, const std::string &password, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateFacebook (const std::string &accessToken, const std::string &username=std::string(), bool create=false, bool importFriends=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateGoogle (const std::string &accessToken, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateGameCenter (const std::string &playerId, const std::string &bundleId, NTimestamp timestampSeconds, const std::string &salt, const std::string &signature, const std::string &publicKeyUrl, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateApple (const std::string &token, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateCustom (const std::string &id, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | authenticateSteam (const std::string &token, const std::string &username=std::string(), bool create=false, const NStringMap &vars={}, std::function< void(NSessionPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkFacebook (NSessionPtr session, const std::string &accessToken, const opt::optional< bool > &importFriends=opt::nullopt, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkEmail (NSessionPtr session, const std::string &email, const std::string &password, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkDevice (NSessionPtr session, const std::string &id, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkGoogle (NSessionPtr session, const std::string &accessToken, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkGameCenter (NSessionPtr session, const std::string &playerId, const std::string &bundleId, NTimestamp timestampSeconds, const std::string &salt, const std::string &signature, const std::string &publicKeyUrl, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkApple (NSessionPtr session, const std::string &token, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkSteam (NSessionPtr session, const std::string &token, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | linkCustom (NSessionPtr session, const std::string &id, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkFacebook (NSessionPtr session, const std::string &accessToken, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkEmail (NSessionPtr session, const std::string &email, const std::string &password, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkGoogle (NSessionPtr session, const std::string &accessToken, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkGameCenter (NSessionPtr session, const std::string &playerId, const std::string &bundleId, NTimestamp timestampSeconds, const std::string &salt, const std::string &signature, const std::string &publicKeyUrl, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkApple (NSessionPtr session, const std::string &token, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkSteam (NSessionPtr session, const std::string &token, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkDevice (NSessionPtr session, const std::string &id, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | unlinkCustom (NSessionPtr session, const std::string &id, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | importFacebookFriends (NSessionPtr session, const std::string &token, const opt::optional< bool > &reset=opt::nullopt, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | getAccount (NSessionPtr session, std::function< void(const NAccount &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | updateAccount (NSessionPtr session, const opt::optional< std::string > &username=opt::nullopt, const opt::optional< std::string > &displayName=opt::nullopt, const opt::optional< std::string > &avatarUrl=opt::nullopt, const opt::optional< std::string > &langTag=opt::nullopt, const opt::optional< std::string > &location=opt::nullopt, const opt::optional< std::string > &timezone=opt::nullopt, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | getUsers (NSessionPtr session, const std::vector< std::string > &ids, const std::vector< std::string > &usernames={}, const std::vector< std::string > &facebookIds={}, std::function< void(const NUsers &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | addFriends (NSessionPtr session, const std::vector< std::string > &ids, const std::vector< std::string > &usernames={}, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | deleteFriends (NSessionPtr session, const std::vector< std::string > &ids, const std::vector< std::string > &usernames={}, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | blockFriends (NSessionPtr session, const std::vector< std::string > &ids, const std::vector< std::string > &usernames={}, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listFriends (NSessionPtr session, const opt::optional< int32_t > &limit, const opt::optional< NFriend::State > &state, const std::string &cursor="", std::function< void(NFriendListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | createGroup (NSessionPtr session, const std::string &name, const std::string &description="", const std::string &avatarUrl="", const std::string &langTag="", bool open=false, const opt::optional< int32_t > &maxCount={}, std::function< void(const NGroup &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | deleteGroup (NSessionPtr session, const std::string &groupId, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | addGroupUsers (NSessionPtr session, const std::string &groupId, const std::vector< std::string > &ids, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listGroupUsers (NSessionPtr session, const std::string &groupId, const opt::optional< int32_t > &limit, const opt::optional< NFriend::State > &state, const std::string &cursor="", std::function< void(NGroupUserListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | kickGroupUsers (NSessionPtr session, const std::string &groupId, const std::vector< std::string > &ids, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | joinGroup (NSessionPtr session, const std::string &groupId, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | leaveGroup (NSessionPtr session, const std::string &groupId, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listGroups (NSessionPtr session, const std::string &name, int32_t limit=0, const std::string &cursor="", std::function< void(NGroupListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listUserGroups (NSessionPtr session, const opt::optional< int32_t > &limit, const opt::optional< NFriend::State > &state, const std::string &cursor="", std::function< void(NUserGroupListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listUserGroups (NSessionPtr session, const std::string &userId, const opt::optional< int32_t > &limit, const opt::optional< NFriend::State > &state, const std::string &cursor="", std::function< void(NUserGroupListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | promoteGroupUsers (NSessionPtr session, const std::string &groupId, const std::vector< std::string > &ids, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | demoteGroupUsers (NSessionPtr session, const std::string &groupId, const std::vector< std::string > &ids, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | updateGroup (NSessionPtr session, const std::string &groupId, const opt::optional< std::string > &name=opt::nullopt, const opt::optional< std::string > &description=opt::nullopt, const opt::optional< std::string > &avatarUrl=opt::nullopt, const opt::optional< std::string > &langTag=opt::nullopt, const opt::optional< bool > &open=opt::nullopt, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listLeaderboardRecords (NSessionPtr session, const std::string &leaderboardId, const std::vector< std::string > &ownerIds={}, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, std::function< void(NLeaderboardRecordListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listLeaderboardRecordsAroundOwner (NSessionPtr session, const std::string &leaderboardId, const std::string &ownerId, const opt::optional< int32_t > &limit=opt::nullopt, std::function< void(NLeaderboardRecordListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | writeLeaderboardRecord (NSessionPtr session, const std::string &leaderboardId, int64_t score, const opt::optional< int64_t > &subscore=opt::nullopt, const opt::optional< std::string > &metadata=opt::nullopt, std::function< void(NLeaderboardRecord)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | writeTournamentRecord (NSessionPtr session, const std::string &tournamentId, int64_t score, const opt::optional< int64_t > &subscore=opt::nullopt, const opt::optional< std::string > &metadata=opt::nullopt, std::function< void(NLeaderboardRecord)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | deleteLeaderboardRecord (NSessionPtr session, const std::string &leaderboardId, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listMatches (NSessionPtr session, const opt::optional< int32_t > &min_size=opt::nullopt, const opt::optional< int32_t > &max_size=opt::nullopt, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &label=opt::nullopt, const opt::optional< bool > &authoritative=opt::nullopt, std::function< void(NMatchListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listNotifications (NSessionPtr session, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cacheableCursor=opt::nullopt, std::function< void(NNotificationListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | deleteNotifications (NSessionPtr session, const std::vector< std::string > ¬ificationIds, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listChannelMessages (NSessionPtr session, const std::string &channelId, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, const opt::optional< bool > &forward=opt::nullopt, std::function< void(NChannelMessageListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listTournaments (NSessionPtr session, const opt::optional< uint32_t > &categoryStart=opt::nullopt, const opt::optional< uint32_t > &categoryEnd=opt::nullopt, const opt::optional< uint32_t > &startTime=opt::nullopt, const opt::optional< uint32_t > &endTime=opt::nullopt, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, std::function< void(NTournamentListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listTournamentRecords (NSessionPtr session, const std::string &tournamentId, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, const std::vector< std::string > &ownerIds={}, std::function< void(NTournamentRecordListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listTournamentRecordsAroundOwner (NSessionPtr session, const std::string &tournamentId, const std::string &ownerId, const opt::optional< int32_t > &limit=opt::nullopt, std::function< void(NTournamentRecordListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | joinTournament (NSessionPtr session, const std::string &tournamentId, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listStorageObjects (NSessionPtr session, const std::string &collection, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, std::function< void(NStorageObjectListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | listUsersStorageObjects (NSessionPtr session, const std::string &collection, const std::string &userId, const opt::optional< int32_t > &limit=opt::nullopt, const opt::optional< std::string > &cursor=opt::nullopt, std::function< void(NStorageObjectListPtr)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | writeStorageObjects (NSessionPtr session, const std::vector< NStorageObjectWrite > &objects, std::function< void(const NStorageObjectAcks &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | readStorageObjects (NSessionPtr session, const std::vector< NReadStorageObjectId > &objectIds, std::function< void(const NStorageObjects &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | deleteStorageObjects (NSessionPtr session, const std::vector< NDeleteStorageObjectId > &objectIds, std::function< void()> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | rpc (NSessionPtr session, const std::string &id, const opt::optional< std::string > &payload=opt::nullopt, std::function< void(const NRpc &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
virtual void | rpc (const std::string &http_key, const std::string &id, const opt::optional< std::string > &payload=opt::nullopt, std::function< void(const NRpc &)> successCallback=nullptr, ErrorCallback errorCallback=nullptr)=0 |
A client interface to interact with Nakama server.
|
inlinevirtual |
|
pure virtual |
Add one or more friends by id.
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. |
|
pure virtual |
Add one or more users to the group.
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. |
|
pure virtual |
Authenticate a user with Apple Sign In.
token | The ID token received from Apple to validate. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with a custom id.
id | A custom identifier usually obtained from an external authentication service. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with a device id.
id | A device identifier usually obtained from a platform API. |
username | A username used to create the user. Defaults to empty string. |
create | True if the user should be created when authenticated. Defaults to false. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with an email and password.
The email address of the user. | |
password | The password for the user. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with a Facebook auth token.
accessToken | An OAuth access token from the Facebook SDK. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
importFriends | True if the Facebook friends should be imported. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with Apple Game Center.
playerId | The player id of the user in Game Center. |
bundleId | The bundle id of the Game Center application. |
timestampSeconds | The date and time that the signature was created. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
publicKeyUrl | The URL for the public encryption key. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with a Google auth token.
accessToken | An OAuth access token from the Google SDK. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Authenticate a user with a Steam auth token.
token | An authentication token from the Steam network. |
username | A username used to create the user. |
create | True if the user should be created when authenticated. |
vars | Extra information that will be bundled in the session token. |
|
pure virtual |
Block one or more friends by id.
session | The session of the user. |
ids | The ids of the users to block. |
usernames | The usernames of the users to block. |
|
pure virtual |
Create a group.
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 | True if the group should have open membership. |
maxCount | Maximum number of group members. |
|
pure virtual |
Create a new real-time client with custom parameters.
parameters | The real-time client parameters. |
transport | The websocket transport. If not set then default websocket transport will be used. |
|
pure virtual |
Create a new real-time client with parameters from client.
port | The port number of the server. Default is 7350 for non-SSL connection, 443 for SSL. |
transport | The websocket transport. If not set then default websocket transport will be used. |
|
pure virtual |
Delete one more or users by id or username from friends.
session | The session of the user. |
ids | the user ids to remove as friends. |
usernames | The usernames to remove as friends. |
|
pure virtual |
Delete a group by id.
session | The session of the user. |
groupId | The group id to to remove. |
|
pure virtual |
Delete a leaderboard record.
session | The session of the user. |
leaderboardId | The id of the leaderboard with the record to be deleted. |
|
pure virtual |
Delete one or more notifications by id.
session | The session of the user. |
notificationIds | The notification ids to remove. |
|
pure virtual |
Delete one or more storage objects.
session | The session of the user. |
objectIds | The ids of the objects to delete. |
|
pure virtual |
Demote a set of users in a group to the next role down.
session | The session of the user. |
groupId | The group ID to demote in. |
ids | The ids of the users to demote. |
|
pure virtual |
Disconnects the client. This function kills all outgoing exchanges immediately without waiting.
|
pure virtual |
Fetch the user account owned by the session.
session | The session of the user. |
|
pure virtual |
Get user data.
|
pure virtual |
Fetch one or more users by id, usernames, and Facebook ids.
session | The session of the user. |
ids | List of user IDs. |
usernames | List of usernames. |
facebookIds | List of Facebook IDs. |
|
pure virtual |
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.
session | The session of the user. |
token | An OAuth access token from the Facebook SDK. |
reset | True if the Facebook friend import for the user should be reset. |
|
pure virtual |
Join a group if it has open membership or request to join it.
session | The session of the user. |
groupId | The id of the group to join. |
|
pure virtual |
Join a tournament if it has open membership or request to join it.
session | The session of the user. |
tournamentId | The id of the tournament to join. |
|
pure virtual |
Kick one or more users from the group.
session | The session of the user. |
groupId | The id of the group. |
ids | The ids of the users to kick. |
|
pure virtual |
Leave a group by id.
session | The session of the user. |
groupId | The id of the group to leave. |
|
pure virtual |
Link an Apple ID to the social profiles on the current user's account.
session | The session of the user. |
token | The ID token received from Apple. |
|
pure virtual |
Link a custom id to the user account owned by the session.
session | The session of the user. |
id | A custom identifier usually obtained from an external authentication service. |
|
pure virtual |
Link a device id to the user account owned by the session.
session | The session of the user. |
id | A device identifier usually obtained from a platform API. |
|
pure virtual |
Link an email with password to the user account owned by the session.
session | The session of the user. |
The email address of the user. | |
password | The password for the user. |
|
pure virtual |
Link a Facebook profile to a user account.
session | The session of the user. |
accessToken | An OAuth access token from the Facebook SDK. |
importFriends | True if the Facebook friends should be imported. |
|
pure virtual |
Link a Game Center profile to a user account.
session | The session of the user. |
playerId | The player id of the user in Game Center. |
bundleId | The bundle id of the Game Center application. |
timestampSeconds | The date and time that the signature was created. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
publicKeyUrl | The URL for the public encryption key. |
|
pure virtual |
Link a Google profile to a user account.
session | The session of the user. |
accessToken | An OAuth access token from the Google SDK. |
|
pure virtual |
Link a Steam profile to a user account.
session | The session of the user. |
token | An authentication token from the Steam network. |
|
pure virtual |
List messages from a chat channel.
session | The session of the user. |
channelId | A channel identifier. |
limit | The number of chat messages to list. |
cursor | A cursor for the current position in the messages history to list. |
forward | Fetch messages forward from the current cursor (or the start). |
|
pure virtual |
List of friends of the current user.
session | The session of the user. |
limit | The max number of records to return. Between 1 and 100. |
state | The friend state to list. |
cursor | An optional next page cursor. |
|
pure virtual |
List groups on the server.
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. |
|
pure virtual |
List all users part of the group.
session | The session of the user. |
groupId | The id of the group. |
limit | The max number of records to return. Between 1 and 100. |
state | The friend state to list. |
cursor | An optional next page cursor. |
|
pure virtual |
List records from a leaderboard.
session | The session of the user. |
leaderboardId | The id of the leaderboard to list. |
ownerIds | Record owners to fetch with the list of records. |
limit | The number of records to list. |
cursor | A cursor for the current position in the leaderboard records to list. |
|
pure virtual |
List leaderboard records from a given leaderboard around the owner.
session | The session of the user. |
leaderboardId | The id of the leaderboard to list. |
ownerId | The owner to retrieve records around. |
limit | Max number of records to return. Between 1 and 100. |
|
pure virtual |
Fetch a list of matches active on the server.
session | The session of the user. |
min_size | The minimum number of match participants. |
max_size | The maximum number of match participants. |
limit | The number of matches to list. |
label | The label to filter the match list on. |
authoritative | true to include authoritative matches. |
|
pure virtual |
List notifications for the user with an optional cursor.
session | The session of the user. |
limit | The number of notifications to list. |
cacheableCursor | A cursor for the current position in notifications to list. |
|
pure virtual |
List storage objects in a collection which have public read access.
session | The session of the user. |
collection | The collection to list over. |
limit | The number of objects to list. |
cursor | A cursor to paginate over the collection. |
|
pure virtual |
List tournament records from a given tournament.
session | The session of the user. |
tournamentId | The ID of the tournament to list for. |
limit | Max number of records to return. Between 1 and 100. |
cursor | A next or previous page cursor. |
ownerIds | One or more owners to retrieve records for. |
|
pure virtual |
List tournament records from a given tournament around the owner.
session | The session of the user. |
tournamentId | The ID of the tournament to list for. |
ownerId | The owner to retrieve records around. |
limit | Max number of records to return. Between 1 and 100. |
|
pure virtual |
List active/upcoming tournaments based on given filters.
session | The session of the user. |
categoryStart | The start of the categories to include. Defaults to 0. |
categoryEnd | The end of the categories to include. Defaults to 128. |
startTime | The start time for tournaments. Defaults to current Unix time. |
endTime | The end time for tournaments. Defaults to +1 year from current Unix time. |
limit | Max number of records to return. Between 1 and 100. |
cursor | A next page cursor for listings. |
|
pure virtual |
List of groups the current user is a member of.
session | The session of the user. |
limit | The max number of records to return. Between 1 and 100. |
state | The friend state to list. |
cursor | An optional next page cursor. |
|
pure virtual |
List groups a user is a member of.
session | The session of the user. |
userId | The id of the user whose groups to list. |
limit | The max number of records to return. Between 1 and 100. |
state | The friend state to list. |
cursor | An optional next page cursor. |
|
pure virtual |
List storage objects in a collection which belong to a specific user and have public read access.
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. |
|
pure virtual |
Promote a set of users in a group to the next role up.
session | The session of the user. |
groupId | The group ID to promote in. |
ids | The ids of the users to promote. |
|
pure virtual |
Read one or more objects from the storage engine.
session | The session of the user. |
objectIds | The objects to read. |
|
pure virtual |
Execute a Lua function with an input payload on the server.
http_key | The server's runtime HTTP key. |
id | The id of the function to execute on the server. |
payload | The payload to send with the function call. |
|
pure virtual |
Execute a Lua function with an input payload on the server.
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. |
|
pure virtual |
Set default error callback.
Will be called if a request fails and no error callback was set for the request.
errorCallback | The error callback. |
|
pure virtual |
Set user data.
Client just holds this data so you can receive it later when you need it.
userData | The user data. |
|
pure virtual |
Pumps requests queue in your thread. Call it periodically, each 50 ms is ok.
|
pure virtual |
Unlink a Apple profile from the user account owned by the session.
session | The session of the user. |
token | An Apple authentication token. |
|
pure virtual |
Unlink a custom id from the user account owned by the session.
session | The session of the user. |
id | A custom identifier usually obtained from an external authentication service. |
|
pure virtual |
Unlink a device id from the user account owned by the session.
session | The session of the user. |
id | A device identifier usually obtained from a platform API. |
|
pure virtual |
Unlink an email with password from the user account owned by the session.
session | The session of the user. |
The email address of the user. | |
password | The password for the user. |
|
pure virtual |
Unlink a Facebook profile from the user account owned by the session.
session | The session of the user. |
accessToken | An OAuth access token from the Facebook SDK. |
|
pure virtual |
Unlink a Game Center profile from the user account owned by the session.
session | The session of the user. |
playerId | The player id of the user in Game Center. |
bundleId | The bundle id of the Game Center application. |
timestampSeconds | The date and time that the signature was created. |
salt | A random NSString used to compute the hash and keep it randomized. |
signature | The verification signature data generated. |
publicKeyUrl | The URL for the public encryption key. |
|
pure virtual |
Unlink a Google profile from the user account owned by the session.
session | The session of the user. |
accessToken | An OAuth access token from the Google SDK. |
|
pure virtual |
Unlink a Steam profile from the user account owned by the session.
session | The session of the user. |
token | An authentication token from the Steam network. |
|
pure virtual |
Update the current user's account on the server.
session | The session for the user. |
username | The new username for the user. |
displayName | A new display name for the user. |
avatarUrl | A new avatar url for the user. |
langTag | A new language tag in BCP-47 format for the user. |
location | A new location for the user. |
timezone | New timezone information for the user. |
|
pure virtual |
Update a group.
The user must have the correct access permissions for the group.
session | The session of the user. |
groupId | The id of the group to update. |
name | A new name for the group. |
description | A new description for the group. |
avatarUrl | A new avatar url for the group. |
langTag | A new language tag in BCP-47 format for the group. |
open | True if the group should have open membership. |
|
pure virtual |
Write a record to a leaderboard.
session | The session for the user. |
leaderboardId | The id of the leaderboard to write. |
score | The score for the leaderboard record. |
subscore | The subscore for the leaderboard record. |
metadata | The metadata for the leaderboard record. |
|
pure virtual |
Write objects to the storage engine.
session | The session of the user. |
objects | The objects to write. |
|
pure virtual |
A request to submit a score to a tournament.
session | The session for the user. |
tournamentId | The tournament ID to write the record for. |
score | The score value to submit. |
subscore | An optional secondary value. |
metadata | A JSON object of additional properties. |