Ruyi SDK
Namespaces
Ruyi.SDK.BrainCloudApi
BrainCloudService.Client Class
Client Constructor
Client Methods
Click or drag to resizeClick or drag to resize

BrainCloudServiceClient Class

[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "T:Ruyi.SDK.BrainCloudApi.BrainCloudService.Client"]

Inheritance Hierarchy
TBaseClient
  Ruyi.SDK.BrainCloudApiBrainCloudServiceClient

Namespace:  Ruyi.SDK.BrainCloudApi
Assembly:  SDK.Gen.ServiceAsync (in SDK.Gen.ServiceAsync.dll) Version: 0.9.3.3995
Syntax
C#
Copy
public class Client : TBaseClient, IDisposable

The BrainCloudServiceClient type exposes the following members.

Constructors
  NameDescription
Public methodBrainCloudServiceClient(TProtocol)
Initializes a new instance of the BrainCloudServiceClient class
Public methodBrainCloudServiceClient(TProtocol, TProtocol)
Initializes a new instance of the BrainCloudServiceClient class
Top
Methods
  NameDescription
Public methodAsyncMatch_AbandonMatchAsync
Marks the given match as abandoned.
Public methodAsyncMatch_CompleteMatchAsync
Marks the given match as complete.
Public methodAsyncMatch_CreateMatchAsync
Creates an instance of an asynchronous match.
Public methodAsyncMatch_CreateMatchWithInitialTurnAsync
Creates an instance of an asynchronous match with an initial turn.
Public methodAsyncMatch_DeleteMatchAsync
Removes the match and match history from the server. DEBUG ONLY, in production it is recommended the user leave it as completed.
Public methodAsyncMatch_FindCompleteMatchesAsync
Returns all matches that are in a COMPLETE state for which the player is involved.
Public methodAsyncMatch_FindMatchesAsync
Returns all matches that are NOT in a COMPLETE state for which the player is involved.
Public methodAsyncMatch_ReadMatchAsync
Returns the current state of the given match.
Public methodAsyncMatch_ReadMatchHistoryAsync
Returns the match history of the given match.
Public methodAsyncMatch_SubmitTurnAsync
Submits a turn for the given match.
Public methodAsyncMatch_UpdateMatchSummaryDataAsync
Allows the current player (only) to update Summary data without having to submit a whole turn.
Public methodAuthentication_AuthenticateAnonymousAsync
Authenticate a user anonymously with brainCloud - used for apps that don't want to bother the user to login, or for users who are sensitive to their privacy
Public methodAuthentication_AuthenticateEmailPasswordAsync
Authenticate the user with a custom Email and Password. Note that the client app is responsible for collecting (and storing) the e-mail and potentially password (for convenience) in the client data. For the greatest security, force the user to re-enter their password at each login. (Or at least give them that option).
Public methodAuthentication_AuthenticateExternalAsync
Authenticate the user via cloud code (which in turn validates the supplied credentials against an external system). This allows the developer to extend brainCloud authentication to support other backend authentication systems.
Public methodAuthentication_AuthenticatePhoneAsync
Authenticate the user via wechat
Public methodAuthentication_AuthenticateUniversalAsync
Authenticate the user using a userId and password (without any validation on the userId). Similar to AuthenticateEmailPassword - except that that method has additional features to allow for e-mail validation, password resets, etc.
Public methodAuthentication_AuthenticateWechatAsync
Authenticate the user via wechat
Public methodAuthentication_CheckUsernameExistsAsync
Public methodAuthentication_ClearSavedProfileIDAsync
Used to clear the saved profile id - to use in cases when the user is attempting to switch to a different app profile.
Public methodAuthentication_GenerateAnonymousIdAsync
Used to create the anonymous installation id for the brainCloud profile.
Public methodAuthentication_GetWeChatQRPageURLAsync
@Authentication_GetWeChatQRPageURL_desc
Public methodAuthentication_InitializeAsync
Initialize - initializes the identity service with a saved anonymous installation id and most recently used profile id
Public methodAuthentication_RequestSmsCodeAsync
Request an SMS code sent to a phone prior to authentication.
Public methodAuthentication_ResetEmailPasswordAsync
Reset Email password - Sends a password reset email to the specified address
Public methodClient_EnableLoggingAsync
Enable logging of brainCloud transactions (comms etc)
Public methodClient_EnableNetworkErrorMessageCachingAsync
Enables the timeout message caching which is disabled by default. Once enabled, if a client side timeout is encountered (i.e. brainCloud server is unreachable presumably due to the client network being down) the SDK will do the following: 1 - cache the currently queued messages to brainCloud 2 - call the network error callback 3 - then expect the app to call either: a) RetryCachedMessages() to retry sending to brainCloud b) FlushCachedMessages() to dump all messages in the queue. Between steps 2 and 3, the app can prompt the user to retry connecting to brainCloud to determine whether to follow path 3a or 3b. Note that if path 3a is followed, and another timeout is encountered, the process will begin all over again from step 1. WARNING - the brainCloud SDK will cache *all* API calls sent when a timeout is encountered if this mechanism is enabled. This effectively freezes all communication with brainCloud. Apps must call either RetryCachedMessages() or FlushCachedMessages() for the brainCloud SDK to resume sending messages. ResetCommunication() will also clear the message cache.
Public methodClient_FlushCachedMessagesAsync
Flushes the cached messages to resume API call processing. This will dump all of the cached messages in the queue.
Public methodClient_GetAuthenticationPacketTimeoutAsync
Gets the authentication packet timeout which is tracked separately from all other packets. Note that authentication packets are never retried and so this value represents the total time a client would wait to receive a reply to an authentication API call. By default this timeout is set to 15 seconds.
Public methodClient_GetPacketTimeoutsAsync
Returns the list of packet timeouts.
Public methodClient_GetSessionIdAsync
Returns the sessionId or empty string if no session present.
Public methodClient_GetUploadLowTransferRateThresholdAsync
Returns the low transfer rate threshold in bytes/sec
Public methodClient_GetUploadLowTransferRateTimeoutAsync
Returns the low transfer rate timeout in secs
Public methodClient_Initialize_SSSAsync
Method initializes the BrainCloudClient.
Public methodClient_Initialize_SSSSAsync
Method initializes the BrainCloudClient.
Public methodClient_InitializeIdentityAsync
Initialize the identity aspects of brainCloud.
Public methodClient_InsertEndOfMessageBundleMarkerAsync
Inserts a marker which will tell the brainCloud comms layer to close the message bundle off at this point. Any messages queued before this method was called will likely be bundled together in the next send to the server. To ensure that only a single message is sent to the server you would do something like this: InsertEndOfMessageBundleMarker() SomeApiCall() InsertEndOfMessageBundleMarker()
Public methodClient_IsAuthenticatedAsync
Returns true if the user is currently authenticated. If a session time out or session invalidation is returned from executing a sever API call, this flag will reset back to false.
Public methodClient_IsInitializedAsync
Returns true if brainCloud has been initialized.
Public methodClient_OverrideCountryCodeAsync
Sets the country code sent to brainCloud when a user authenticates. Will override any auto detected country.
Public methodClient_OverrideLanguageCodeAsync
Sets the language code sent to brainCloud when a user authenticates. If the language is set to a non-ISO 639-1 standard value the game default will be used instead. Will override any auto detected language.
Public methodClient_ResetCommunicationAsync
Resets all messages and calls to the server
Public methodClient_RetryCachedMessagesAsync
Attempts to resend any cached messages. If no messages are in the cache, this method does nothing.
Public methodClient_SetAuthenticationPacketTimeoutAsync
Sets the authentication packet timeout which is tracked separately from all other packets. Note that authentication packets are never retried and so this value represents the total time a client would wait to receive a reply to an authentication API call. By default this timeout is set to 15 seconds.
Public methodClient_SetPacketTimeoutsAsync
Public methodClient_SetPacketTimeoutsToDefaultAsync
Sets the packet timeouts back to default.
Public methodClient_SetUploadLowTransferRateThresholdAsync
Sets the low transfer rate threshold of an upload in bytes/sec. If the transfer rate dips below the given threshold longer than the specified timeout, the transfer will fail. By default this is set to 50 bytes/sec. Note that this timeout method does not work on Unity mobile platforms.
Public methodClient_SetUploadLowTransferRateTimeoutAsync
Sets the timeout in seconds of a low speed upload (i.e. transfer rate which is underneath the low transfer rate threshold). By default this is set to 120 secs.Setting this value to 0 will turn off the timeout. Note that this timeout method does not work on Unity mobile platforms.
Public methodClient_UpdateAsync
Update method needs to be called regularly in order to process incoming and outgoing messages.
Public methodDataStream_CustomPageEventAsync
Creates custom data stream page event
Public methodDataStream_CustomScreenEventAsync
Creates custom data stream screen event
Public methodDataStream_CustomTrackEventAsync
Creates custom data stream track event
Public methodEntity_CreateEntityAsync
Method creates a new entity on the server.
Public methodEntity_DeleteEntityAsync
Method deletes the given entity on the server.
Public methodEntity_DeleteSingletonAsync
Method deletes the given singleton on the server.
Public methodEntity_GetEntitiesByTypeAsync
Method returns all user entities that match the given type.
Public methodEntity_GetEntityAsync
Method to get a specific entity.
Public methodEntity_GetListAsync
Method gets list of entities from the server base on type and/or where clause
Public methodEntity_GetListCountAsync
Method gets a count of entities based on the where clause
Public methodEntity_GetPageAsync
Method uses a paging system to iterate through user entities. After retrieving a page of entities with this method, use GetPageOffset() to retrieve previous or next pages.
Public methodEntity_GetPageOffsetAsync
Method to retrieve previous or next pages after having called the GetPage method.
Public methodEntity_GetSharedEntitiesForProfileIdAsync
Method returns all shared entities for the given profile id. An entity is shared if its ACL allows for the currently logged in user to read the data.
Public methodEntity_GetSharedEntitiesListForProfileIdAsync
Method gets list of shared entities for the specified user based on type and/or where clause
Public methodEntity_GetSharedEntityForProfileIdAsync
Method returns a shared entity for the given profile and entity ID. An entity is shared if its ACL allows for the currently logged in user to read the data.
Public methodEntity_GetSingletonAsync
Method retrieves a singleton entity on the server. If the entity doesn't exist, null is returned.
Public methodEntity_IncrementSharedUserEntityDataAsync
Partial increment of shared entity data field items. Partial set of items incremented as specified.
Public methodEntity_IncrementUserEntityDataAsync
Partial increment of entity data field items. Partial set of items incremented as specified.
Public methodEntity_UpdateEntityAsync
Method updates a new entity on the server. This operation results in the entity data being completely replaced by the passed in JSON string.
Public methodEntity_UpdateSharedEntityAsync
Method updates a shared entity owned by another user. This operation results in the entity data being completely replaced by the passed in JSON string.
Public methodEntity_UpdateSingletonAsync
Method updates a singleton entity on the server. This operation results in the entity data being completely replaced by the passed in JSON string. If the entity doesn't exist it is created.
Public methodEvent_DeleteIncomingEventAsync
Delete an event out of the user's incoming mailbox.
Public methodEvent_GetEventsAsync
Get the events currently queued for the user.
Public methodEvent_SendEventAsync
Sends an event to the designated profile id with the attached json data. Any events that have been sent to a user will show up in their incoming event mailbox. If the recordLocally flag is set to true, a copy of this event (with the exact same event id) will be stored in the sending user's "sent" event mailbox.
Public methodEvent_UpdateIncomingEventDataAsync
Updates an event in the user's incoming event mailbox.
Public methodFile_CancelDownloadAsync
@BrainCloud_CancelDownload_desc
Public methodFile_CancelUploadAsync
Method cancels an upload. If an IFileUploadCallback has been registered with the BrainCloudClient class, the fileUploadFailed callback method will be called once the upload has been canceled. NOTE: The upload will still continue in the background on versions of Unity before 5.3 and on Unity mobile platforms.
Public methodFile_DeleteUserFileAsync
Deletes a single user file.
Public methodFile_DeleteUserFilesAsync
Delete multiple user files
Public methodFile_DownloadFileAsync
@BrainCloud_DownloadFile_desc
Public methodFile_GetCDNUrlAsync
Returns the CDN URL for a file object.
Public methodFile_GetDownloadInfoAsync
@BrainCloud_GetDownloadInfo_desc
Public methodFile_GetUploadBytesTransferredAsync
Returns the number of bytes uploaded or -1 if upload not found. NOTE: This will always return the total bytes to transfer on Unity mobile platforms.
Public methodFile_GetUploadProgressAsync
Returns the progress of the given upload from 0.0 to 1.0 or -1 if upload not found. NOTE: This will always return 1 on Unity mobile platforms.
Public methodFile_GetUploadTotalBytesToTransferAsync
Returns the total number of bytes that will be uploaded or -1 if upload not found.
Public methodFile_ListUserFiles_SFOAsync
List all user files
Public methodFile_ListUserFiles_SNSFOAsync
List user files from the given cloud path
Public methodFile_UploadFileAsync
Prepares a user file upload. On success the file will begin uploading to the brainCloud server.To be informed of success/failure of the upload register an IFileUploadCallback with the BrainCloudClient class.
Public methodFriend_AcceptFriendInvitationAsync
Public methodFriend_AddFriendsAsync
Public methodFriend_FindUserByUniversalIdAsync
Public methodFriend_FindUsersByExactNameAsync
Finds a list of users matching the search text by performing an exact search of all user names.
Public methodFriend_FindUsersBySubstrNameAsync
Finds a list of users matching the search text by performing a substring search of all user names.
Public methodFriend_GetSummaryDataForFriendsAsync
Returns user state of the player's friends.
Public methodFriend_GetSummaryDataForProfileIdAsync
Returns user state of a particular user.
Public methodFriend_GetSummaryDataForProfileIdsAsync
Public methodFriend_GetSummaryDataForRecentlyMetPlayersAsync
Returns user state of player's recently met.
Public methodFriend_GetUsersOnlineStatusAsync
Public methodFriend_ListFriendInvitationsReceivedAsync
Public methodFriend_ListFriendInvitationsSentAsync
Public methodFriend_ListFriendsAsync
Public methodFriend_ReadFriendEntityAsync
Returns a particular entity of a particular friend.
Public methodFriend_ReadFriendsEntitiesAsync
Returns entities of all friends based on type and/or subtype.
Public methodFriend_ReadFriendUserStateAsync
Returns user state of a particular friend.
Public methodFriend_RejectFriendInvitationAsync
Public methodFriend_RemoveFriendAsync
Public methodFriend_RemoveFriendsAsync
Public methodFriend_SendFriendInvitationAsync
Public methodGamification_AwardAchievementsAsync
Public methodGamification_ReadAchievedAchievementsAsync
Method retrives the list of achieved achievements.
Public methodGamification_ReadAchievementsAsync
Read all of the achievements defined for the game.
Public methodGamification_ReadAllGamificationAsync
Method retrieves all gamification data for the player.
Public methodGamification_ReadCompletedMilestonesAsync
Method retrieves the list of completed milestones.
Public methodGamification_ReadCompletedQuestsAsync
Method returns all completed quests.
Public methodGamification_ReadInProgressMilestonesAsync
Method retrieves the list of in progress milestones
Public methodGamification_ReadInProgressQuestsAsync
Method returns all in progress quests.
Public methodGamification_ReadMilestonesAsync
Method retrieves all milestones defined for the game.
Public methodGamification_ReadMilestonesByCategoryAsync
Method retrieves milestones of the given category.
Public methodGamification_ReadNotStartedQuestsAsync
Method returns all quests that haven't been started.
Public methodGamification_ReadQuestsAsync
Method retrieves all of the quests defined for the game.
Public methodGamification_ReadQuestsByCategoryAsync
Method returns all quests for the given category.
Public methodGamification_ReadQuestsWithBasicPercentageAsync
Method returns all quests with a basic percentage.
Public methodGamification_ReadQuestsWithComplexPercentageAsync
Method returns all quests with a complex percentage.
Public methodGamification_ReadQuestsWithStatusAsync
Method returns all quests with status.
Public methodGamification_ReadXpLevelsMetaDataAsync
Method returns all defined xp levels and any rewards associated with those xp levels.
Public methodGamification_ResetMilestonesAsync
Public methodGlobalApp_ReadPropertiesAsync
Method reads all the global properties of the game
Public methodGlobalEntity_CreateEntityAsync
Method creates a new entity on the server.
Public methodGlobalEntity_CreateEntityWithIndexedIdAsync
Method creates a new entity on the server with an indexed id.
Public methodGlobalEntity_DeleteEntityAsync
Method deletes an existing entity on the server.
Public methodGlobalEntity_GetListAsync
Method gets list of entities from the server base on type and/or where clause
Public methodGlobalEntity_GetListByIndexedIdAsync
Method gets list of entities from the server base on indexed id
Public methodGlobalEntity_GetListCountAsync
Method gets a count of entities based on the where clause
Public methodGlobalEntity_GetPageAsync
Method uses a paging system to iterate through Global Entities. After retrieving a page of Global Entities with this method, use GetPageOffset() to retrieve previous or next pages.
Public methodGlobalEntity_GetPageOffsetAsync
Method to retrieve previous or next pages after having called the GetPage method.
Public methodGlobalEntity_GetRandomEntitiesMatchingAsync
Gets a list of up to randomCount randomly selected entities from the server based on the where condition and specified maximum return count.
Public methodGlobalEntity_IncrementGlobalEntityDataAsync
Partial increment of global entity data field items. Partial set of items incremented as specified.
Public methodGlobalEntity_MakeSystemEntityAsync
Public methodGlobalEntity_ReadEntityAsync
Method reads an existing entity from the server.
Public methodGlobalEntity_UpdateEntityAclAsync
Method updates an existing entity's Acl on the server.
Public methodGlobalEntity_UpdateEntityAsync
Method updates an existing entity on the server.
Public methodGlobalEntity_UpdateEntityOwnerAndAclAsync
Public methodGlobalEntity_UpdateEntityTimeToLiveAsync
Method updates an existing entity's time to live on the server.
Public methodGlobalStatistics_IncrementGlobalStatsAsync
Atomically increment (or decrement) global statistics. Global statistics are defined through the brainCloud portal.
Public methodGlobalStatistics_ProcessStatisticsAsync
Public methodGlobalStatistics_ReadAllGlobalStatsAsync
Method returns all of the global statistics.
Public methodGlobalStatistics_ReadGlobalStatsForCategoryAsync
Method retrieves the global statistics for the given category.
Public methodGlobalStatistics_ReadGlobalStatsSubsetAsync
Public methodGroup_AcceptGroupInvitationAsync
Accept an outstanding invitation to join the group.
Public methodGroup_AddGroupMemberAsync
Public methodGroup_ApproveGroupJoinRequestAsync
Public methodGroup_AutoJoinGroupAsync
Public methodGroup_CancelGroupInvitationAsync
Cancel an outstanding invitation to the group.
Public methodGroup_CreateGroupAsync
Public methodGroup_CreateGroupEntityAsync
Public methodGroup_DeleteGroupAsync
Delete a group.
Public methodGroup_DeleteGroupEntityAsync
Delete a group entity.
Public methodGroup_GetMyGroupsAsync
Read information on groups to which the current user belongs.
Public methodGroup_IncrementGroupDataAsync
Increment elements for the group's data field.
Public methodGroup_IncrementGroupEntityDataAsync
Increment elements for the group entity's data field.
Public methodGroup_InviteGroupMemberAsync
Public methodGroup_JoinGroupAsync
Join an open group or request to join a closed group.
Public methodGroup_LeaveGroupAsync
Leave a group in which the user is a member.
Public methodGroup_ListGroupsPageAsync
Retrieve a page of group summary information based on the specified context.
Public methodGroup_ListGroupsPageByOffsetAsync
Retrieve a page of group summary information based on the encoded context and specified page offset.
Public methodGroup_ListGroupsWithMemberAsync
Read information on groups to which the specified user belongs. Access is subject to restrictions.
Public methodGroup_ReadGroupAsync
Read the specified group.
Public methodGroup_ReadGroupDataAsync
Read the data of the specified group.
Public methodGroup_ReadGroupEntitiesPageAsync
Read a page of group entity information.
Public methodGroup_ReadGroupEntitiesPageByOffsetAsync
Read a page of group entity information.
Public methodGroup_ReadGroupEntityAsync
Read the specified group entity.
Public methodGroup_ReadGroupMembersAsync
Read the members of the group.
Public methodGroup_RejectGroupInvitationAsync
Reject an outstanding invitation to join the group.
Public methodGroup_RejectGroupJoinRequestAsync
Reject an outstanding request to join the group.
Public methodGroup_RemoveGroupMemberAsync
Remove a member from the group.
Public methodGroup_UpdateGroupDataAsync
Updates a group's data.
Public methodGroup_UpdateGroupEntityDataAsync
Update a group entity.
Public methodGroup_UpdateGroupMemberAsync
Public methodGroup_UpdateGroupNameAsync
Updates a group's name.
Public methodIdentity_AttachEmailIdentityAsync
Attach a Email and Password identity to the current profile.
Public methodIdentity_AttachParentWithIdentityAsync
Attach a new identity to a parent app
Public methodIdentity_AttachPeerProfileAsync
Attaches a peer identity to this user's profile
Public methodIdentity_AttachUniversalIdentityAsync
Attach a Universal (userId + password) identity to the current profile.
Public methodIdentity_ChangeEmailIdentityAsync
Allows email identity email address to be changed
Public methodIdentity_DetachEmailIdentityAsync
Detach the e-mail identity from the current profile
Public methodIdentity_DetachParentAsync
Detaches parent from this user's profile
Public methodIdentity_DetachPeerAsync
Detaches a peer identity from this user's profile
Public methodIdentity_DetachUniversalIdentityAsync
Detach the universal identity from the current profile
Public methodIdentity_GetChildProfilesAsync
Returns a list of all child profiles in child Apps
Public methodIdentity_GetExpiredIdentitiesAsync
Retrieve list of expired identities
Public methodIdentity_GetIdentitiesAsync
Retrieve list of identities
Public methodIdentity_GetPeerProfilesAsync
Retrieves a list of attached peer profiles
Public methodIdentity_MergeEmailIdentityAsync
Merge the profile associated with the provided e=mail with the current profile.
Public methodIdentity_MergeUniversalIdentityAsync
Merge the profile associated with the provided e=mail with the current profile.
Public methodIdentity_RefreshIdentityAsync
Refreshes an identity for this user
Public methodIdentity_SwitchToChildProfileAsync
Switch to a Child Profile
Public methodIdentity_SwitchToParentProfileAsync
Switch to a Parent Profile
Public methodIdentity_SwitchToSingletonChildProfileAsync
Switches to the child profile of an app when only one profile exists If multiple profiles exist this returns an error
Public methodLobby_CloseLobbyAsync
Close a lobby so players can't join.
Public methodLobby_CreateLobbyAsync
Public methodLobby_DestroyLobbyAsync
Destroy a lobby.
Public methodLobby_FindFriendsLobbiesAsync
Find lobbies with the player's friends in them.
Public methodLobby_FindLobbiesAsync
Find lobbies the player can join.
Public methodLobby_GetMyLobbiesAsync
Get a list of lobbies the player is a member of.
Public methodLobby_JoinLobbyAsync
Join a lobby.
Public methodLobby_LeaveLobbyAsync
Leave a lobby.
Public methodLobby_OpenLobbyAsync
Open a lobby so players can join.
Public methodLobby_StartGameAsync
Start a lobby game.
Public methodMail_SendAdvancedEmailAsync
Sends an advanced email to the specified user
Public methodMail_SendAdvancedEmailByAddressAsync
Sends an advanced email to the specified email address
Public methodMail_SendBasicEmailAsync
Sends a simple text email to the specified user
Public methodMatchMaking_DecrementPlayerRatingAsync
Decrements player rating
Public methodMatchMaking_DisableMatchMakingAsync
Disables Match Making for the Player
Public methodMatchMaking_EnableMatchMakingAsync
Enables Match Making for the Player
Public methodMatchMaking_FindPlayersAsync
Finds matchmaking enabled players
Public methodMatchMaking_FindPlayersUsingFilterAsync
Finds matchmaking enabled players using a cloud code filter
Public methodMatchMaking_FindPlayersWithAttributesAsync
Finds matchmaking enabled players with additional attributes
Public methodMatchMaking_FindPlayersWithAttributesUsingFilterAsync
Finds matchmaking enabled players using a cloud code filter and additional attributes
Public methodMatchMaking_GetShieldExpiryAsync
Gets the shield expiry for the given player id. Passing in a null player id will return the shield expiry for the current player. The value returned is the time in UTC millis when the shield will expire.
Public methodMatchMaking_IncrementPlayerRatingAsync
Increments player rating
Public methodMatchMaking_IncrementShieldOnForAsync
Increases the shield on time by specified number of minutes
Public methodMatchMaking_ReadAsync
Read match making record
Public methodMatchMaking_ResetPlayerRatingAsync
Resets player rating
Public methodMatchMaking_SetPlayerRatingAsync
Sets player rating
Public methodMatchMaking_TurnShieldOffAsync
Turns shield off
Public methodMatchMaking_TurnShieldOnAsync
Turns shield on
Public methodMatchMaking_TurnShieldOnForAsync
Turns shield on for the specified number of minutes
Public methodOneWayMatch_CancelMatchAsync
Cancels a match
Public methodOneWayMatch_CompleteMatchAsync
Completes a match
Public methodOneWayMatch_StartMatchAsync
Starts a match
Public methodParty_AcceptPartyInvitationAsync
Public methodParty_GetFriendsPartiesAsync
Public methodParty_GetMyPartyAsync
Public methodParty_GetPartyInfoAsync
Public methodParty_JoinPartyAsync
Public methodParty_LeavePartyAsync
Public methodParty_ListPartyInvitationsAsync
Public methodParty_RejectPartyInvitationAsync
Public methodParty_SendPartyInvitationAsync
Public methodPatch_GetGameManifestAsync
Public methodPlaybackStream_AddEventAsync
Adds a stream event
Public methodPlaybackStream_DeleteStreamAsync
Deletes a stream
Public methodPlaybackStream_EndStreamAsync
Ends a stream
Public methodPlaybackStream_GetRecentStreamsForInitiatingPlayerAsync
Gets recent streams for initiating player
Public methodPlaybackStream_GetRecentStreamsForTargetPlayerAsync
Gets recent streams for target player
Public methodPlaybackStream_ReadStreamAsync
Reads a stream
Public methodPlaybackStream_StartStreamAsync
Starts a stream
Public methodPlayerState_DeleteUserAsync
Completely deletes the user record and all data fully owned by the user. After calling this method, the user will need to re-authenticate and create a new profile. This is mostly used for debugging/qa.
Public methodPlayerState_GetAttributesAsync
Retrieve the user's attributes.
Public methodPlayerState_LogoutAsync
Logs user out of server.
Public methodPlayerState_ReadUserStateAsync
Read the state of the currently logged in user. This method returns a JSON object describing most of the player's data: entities, statistics, level, currency. Apps will typically call this method after authenticating to get an up-to-date view of the user's data.
Public methodPlayerState_RemoveAttributesAsync
Public methodPlayerState_ResetUserAsync
This method will delete *most* data for the currently logged in user. Data which is not deleted includes: currency, credentials, and purchase transactions. ResetUser is different from DeleteUser in that the player record will continue to exist after the reset (so the user does not need to re-authenticate).
Public methodPlayerState_UpdateAttributesAsync
Update user's attributes.
Public methodPlayerState_UpdateContactEmailAsync
Update the user's contact email. Note this is unrelated to email authentication.
Public methodPlayerState_UpdateSummaryFriendDataAsync
Updates the "friend summary data" associated with the logged in user. Some operations will return this summary data. For instance the social leaderboards will return the player's score in the leaderboard along with the friend summary data. Generally this data is used to provide a quick overview of the player without requiring a separate API call to read their public stats or entity data.
Public methodPlayerState_UpdateUserNameAsync
Sets the user name.
Public methodPlayerState_UpdateUserPictureUrlAsync
Updates player's picture URL.
Public methodPlayerStatistics_GetNextExperienceLevelAsync
Returns JSON representing the next experience level for the user.
Public methodPlayerStatistics_IncrementExperiencePointsAsync
Increments the user's experience. If the user goes up a level, the new level details will be returned along with a list of rewards.
Public methodPlayerStatistics_IncrementUserStats_DSFOAsync
Public methodPlayerStatistics_IncrementUserStats_SSFOAsync
Atomically increment (or decrement) user statistics. Any rewards that are triggered from user statistic increments will be considered. User statistics are defined through the brainCloud portal. Note also that the "xpCapped" property is returned (true/false depending on whether the xp cap is turned on and whether the user has hit it).
Public methodPlayerStatistics_ProcessStatisticsAsync
Public methodPlayerStatistics_ReadAllUserStatsAsync
Read all available user statistics.
Public methodPlayerStatistics_ReadUserStatsForCategoryAsync
Method retrieves the user statistics for the given category.
Public methodPlayerStatistics_ReadUserStatsSubsetAsync
Public methodPlayerStatistics_ResetAllUserStatsAsync
Reset all of the statistics for this user back to their initial value.
Public methodPlayerStatistics_SetExperiencePointsAsync
Sets the user's experience to an absolute value. Note that this is simply a set and will not reward the user if their level changes as a result.
Public methodPlayerStatisticsEvent_TriggerStatsEventAsync
Trigger an event server side that will increase the user statistics. This may cause one or more awards to be sent back to the user - could be achievements, experience, etc. Achievements will be sent by this client library to the appropriate awards service (Apple Game Center, etc). This mechanism supercedes the PlayerStatisticsService API methods, since PlayerStatisticsService API method only update the raw statistics without triggering the rewards.
Public methodPlayerStatisticsEvent_TriggerStatsEventsAsync
See documentation for TriggerStatsEvent for more documentation.
Public methodProduct_GetCurrencyAsync
Gets the player's currency for the given currency type or all currency types if null passed in.
Public methodProduct_GetEligiblePromotionsAsync
Returns the eligible promotions for the player.
Public methodProduct_GetSalesInventoryAsync
Method gets the active sales inventory for the passed-in currency type.
Public methodProduct_GetSalesInventoryByCategoryAsync
Method gets the active sales inventory for the passed-in currency type and category.
Public methodProduct_VerifyItunesReceiptAsync
Verify ITunes Receipt. On success, the player will be awarded the associated currencies.
Public methodProduct_VerifyMicrosoftReceiptAsync
Verify Microsoft Receipt. On success, the player will be awarded the associated currencies.
Public methodProfanity_ProfanityCheckAsync
Checks supplied text for profanity.
Public methodProfanity_ProfanityIdentifyBadWordsAsync
Checks supplied text for profanity and returns a list of bad wors.
Public methodProfanity_ProfanityReplaceTextAsync
Replaces the characters of profanity text with a passed character(s).
Public methodPushNotification_DeregisterAllPushNotificationDeviceTokensAsync
Deregisters all device tokens currently registered to the user.
Public methodPushNotification_DeregisterPushNotificationDeviceTokenAsync
Deregisters the given device token from the server to disable this device from receiving push notifications.
Public methodPushNotification_RegisterPushNotificationDeviceTokenAsync
Registers the given device token with the server to enable this device to receive push notifications.
Public methodPushNotification_ScheduleNormalizedPushNotificationMinutesAsync
Schedules a normalized push notification to a user
Public methodPushNotification_ScheduleNormalizedPushNotificationUTCAsync
Schedules a normalized push notification to a user
Public methodPushNotification_ScheduleRawPushNotificationMinutesAsync
Schedules raw notifications based on user local time.
Public methodPushNotification_ScheduleRawPushNotificationUTCAsync
Schedules raw notifications based on user local time.
Public methodPushNotification_ScheduleRichPushNotificationMinutesAsync
Schedules a rich push notification to a user
Public methodPushNotification_ScheduleRichPushNotificationUTCAsync
Schedules a rich push notification to a user
Public methodPushNotification_SendNormalizedPushNotificationAsync
Sends a notification to a user consisting of alert content and custom data.
Public methodPushNotification_SendNormalizedPushNotificationBatchAsync
Public methodPushNotification_SendNormalizedPushNotificationToGroupAsync
Sends a notification to a "group" of user based on a brainCloud portal configured notification template. Includes JSON defining the substitution params to use with the template. See the Portal documentation for more info.
Public methodPushNotification_SendRawPushNotificationAsync
Sends a raw push notification to a target user.
Public methodPushNotification_SendRawPushNotificationBatchAsync
Public methodPushNotification_SendRawPushNotificationToGroupAsync
Sends a raw push notification to a target group.
Public methodPushNotification_SendRichPushNotificationAsync
Sends a notification to a user based on a brainCloud portal configured notification template. NOTE: It is possible to send a push notification to oneself.
Public methodPushNotification_SendRichPushNotificationWithParamsAsync
Sends a notification to a user based on a brainCloud portal configured notification template. Includes JSON defining the substitution params to use with the template. See the Portal documentation for more info. NOTE: It is possible to send a push notification to oneself.
Public methodPushNotification_SendSimplePushNotificationAsync
Sends a simple push notification based on the passed in message. NOTE: It is possible to send a push notification to oneself.
Public methodPushNotification_SendTemplatedPushNotificationToGroupAsync
Sends a notification to a "group" of user based on a brainCloud portal configured notification template. Includes JSON defining the substitution params to use with the template. See the Portal documentation for more info.
Public methodScript_CancelScheduledScriptAsync
Cancels a scheduled cloud code script
Public methodScript_RunParentScriptAsync
Run a cloud script in a parent app
Public methodScript_RunPeerScriptAsync
Runs a script from the context of a peer
Public methodScript_RunPeerScriptAsynchAsync
Runs a script asynchronously from the context of a peer This operation does not wait for the script to complete before returning
Public methodScript_RunScriptAsync
Executes a script on the server.
Public methodScript_ScheduleRunScriptMinutesAsync
Allows cloud script executions to be scheduled
Public methodScript_ScheduleRunScriptUTCAsync
Public methodShopping_AddToCart_ISFOAsync
Public methodShopping_AddToCart_SISFOAsync
Add a product to the player's shopping cart.
Public methodShopping_AddToWishlistAsync
Add an item to the player's wishlist.
Public methodShopping_EmptyCartAsync
Empty the player's shopping cart.
Public methodShopping_EmptyWishlistAsync
Remove all items from the player's wishlist.
Public methodShopping_FunnyUserReviewAsync
@2222188570
Public methodShopping_GetCartAsync
Retrieve the player's current shopping cart.
Public methodShopping_GetFeaturedProductsAsync
Return a list of featured products.
Public methodShopping_GetMyLibraryAsync
@2304250631
Public methodShopping_GetMyOrdersAsync
@919332756
Public methodShopping_GetMyUserTagsAsync
@274383141
Public methodShopping_GetMyWishlistAsync
Returns the current player's wishlist.
Public methodShopping_GetPopularProductsAsync
Return a list of the mos tpopular products.
Public methodShopping_GetPopularTagsAsync
@1350446922
Public methodShopping_GetProductAsync
@2681224790
Public methodShopping_GetProductsByTagAsync
@3387279661
Public methodShopping_GetProductsByTagsAsync
Public methodShopping_GetRecentlyCreatedProductsAsync
Return a list of recently created products.
Public methodShopping_GetRecentlyUpdatedProductsAsync
Return a list of recently updated products.
Public methodShopping_GetRecommendedProductsAsync
@2681224790
Public methodShopping_GetSpecialOffersAsync
Return a list of special offers.
Public methodShopping_GetUserReviewsAsync
Get a list of user reviews for a product.
Public methodShopping_GetUserTagsAsync
@1777617418
Public methodShopping_GetWishlistAsync
Returns the specified player's wishlist.
Public methodShopping_LikeUserReviewAsync
@3972606582
Public methodShopping_RemoveFromCartAsync
Remove an item from the player's shopping cart.
Public methodShopping_RemoveFromWishlist_ISFOAsync
Public methodShopping_RemoveFromWishlist_SSFOAsync
Remove an item from the player's wishlist.
Public methodShopping_RemoveUserTagAsync
@2944656417
Public methodShopping_SubmitUserReviewAsync
Submit a user review of a product.
Public methodShopping_SubmitUserTagAsync
@3717774610
Public methodShopping_SubmitUserTagsAsync
Public methodShopping_UnfunnyUserReviewAsync
@2806051775
Public methodShopping_UnlikeUserReviewAsync
@594218927
Public methodSocialFeed_BlockPlayerAsync
Public methodSocialFeed_GetActivityAsync
Public methodSocialFeed_GetCommentAsync
Public methodSocialFeed_HidePlayerAsync
Public methodSocialFeed_LikeActivityAsync
Public methodSocialFeed_LikeCommentAsync
Public methodSocialFeed_PostCommentAsync
Public methodSocialFeed_PostCommentReplyAsync
Public methodSocialFeed_ReadCommentRepliesAsync
Public methodSocialFeed_ReadCommentsAsync
Public methodSocialFeed_ReadFilteredSocialFeedAsync
Public methodSocialFeed_ReadFriendsSocialFeedAsync
Public methodSocialFeed_ReadSocialFeedAsync
Public methodSocialFeed_SetFeedVisibilityAsync
Public methodSocialFeed_ShareAchievementAsync
Public methodSocialFeed_ShareAppAsync
Public methodSocialFeed_ShareChannelAsync
Public methodSocialFeed_ShareGameGuideAsync
Public methodSocialFeed_ShareLinkAsync
Public methodSocialFeed_ShareScreenshotAsync
Public methodSocialFeed_ShareVideoAsync
Public methodSocialFeed_UnblockPlayerAsync
Public methodSocialFeed_UnhidePlayerAsync
Public methodSocialFeed_UnlikeActivityAsync
Public methodSocialFeed_UnlikeCommentAsync
Public methodSocialLeaderboard_GetGlobalLeaderboardEntryCountAsync
Gets the number of entries in a global leaderboard
Public methodSocialLeaderboard_GetGlobalLeaderboardEntryCountByVersionAsync
Gets the number of entries in a global leaderboard
Public methodSocialLeaderboard_GetGlobalLeaderboardPageAsync
Public methodSocialLeaderboard_GetGlobalLeaderboardPageByVersionAsync
Public methodSocialLeaderboard_GetGlobalLeaderboardVersionsAsync
Gets the global leaderboard versions.
Public methodSocialLeaderboard_GetGlobalLeaderboardViewAsync
Public methodSocialLeaderboard_GetGlobalLeaderboardViewByVersionAsync
Public methodSocialLeaderboard_GetGroupSocialLeaderboardAsync
Retrieve the social leaderboard for a group.
Public methodSocialLeaderboard_GetMultiSocialLeaderboardAsync
Public methodSocialLeaderboard_GetPlayerScoreAsync
Gets a player's score from a leaderboard
Public methodSocialLeaderboard_GetPlayerScoresFromLeaderboardsAsync
Public methodSocialLeaderboard_GetPlayersSocialLeaderboardAsync
Public methodSocialLeaderboard_GetSocialLeaderboardAsync
Method returns the social leaderboard. A player's social leaderboard is comprised of players who are recognized as being your friend. For now, this applies solely to Facebook connected players who are friends with the logged in player (who also must be Facebook connected). In the future this will expand to other identification means (such as Game Centre, Google circles etc). Leaderboards entries contain the player's score and optionally, some user-defined data associated with the score. The currently logged in player will also be returned in the social leaderboard. Note: If no friends have played the game, the bestScore, createdAt, updatedAt will contain NULL.
Public methodSocialLeaderboard_ListLeaderboardsAsync
Retrieve a list of all leaderboards
Public methodSocialLeaderboard_PostScoreToDynamicLeaderboardAsync
Public methodSocialLeaderboard_PostScoreToDynamicLeaderboardDaysAsync
Public methodSocialLeaderboard_PostScoreToLeaderboardAsync
Post the players score to the given social leaderboard. You can optionally send a user-defined json string of data with the posted score. This string could include information relevant to the posted score. Note that the behaviour of posting a score can be modified in the brainCloud portal. By default, the server will only keep the player's best score.
Public methodSocialLeaderboard_RemovePlayerScoreAsync
Removes a player's score from the leaderboard
Public methodTelemetry_EndTelemetryEventAsync
Public methodTelemetry_EndTelemetrySessionAsync
Public methodTelemetry_LogTelemetryEventAsync
Public methodTelemetry_StartTelemetryEventAsync
Public methodTelemetry_StartTelemetrySessionAsync
Public methodTime_ReadServerTimeAsync
Method returns the server time in UTC. This is in UNIX millis time format. For instance 1396378241893 represents 2014-04-01 2:50:41.893 in GMT-4.
Public methodTournament_ClaimTournamentRewardAsync
Processes any outstanding rewards for the given player
Public methodTournament_GetTournamentStatusAsync
Get tournament status associated with a leaderboard
Public methodTournament_JoinTournamentAsync
Join the specified tournament. Any entry fees will be automatically collected.
Public methodTournament_LeaveTournamentAsync
Removes player's score from tournament leaderboard
Public methodTournament_PostTournamentScoreAsync
Public methodTournament_PostTournamentScoreWithResultsAsync
Public methodTournament_ViewCurrentRewardAsync
Returns the user's expected reward based on the current scores
Public methodTournament_ViewRewardAsync
Returns the user's reward from a finished tournament
Top
See Also

Reference

Ruyi.SDK.BrainCloudApi Namespace

Copyright ©Zhongshan Subor Advanced Technology Co., Ltd. 2017-2018, All right reserved

Send comments on this topic to dev-support@playruyi.com