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
SystemObject
  Ruyi.SDK.BrainCloudApiBrainCloudServiceClient

Namespace:  Ruyi.SDK.BrainCloudApi
Assembly:  ServiceGenerated (in ServiceGenerated.dll) Version: 0.9.3.3995 (0.9.3.3995)
Syntax
C#
Copy
public class Client : 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_AbandonMatch
Marks the given match as abandoned.
Public methodAsyncMatch_CompleteMatch
Marks the given match as complete.
Public methodAsyncMatch_CreateMatch
Creates an instance of an asynchronous match.
Public methodAsyncMatch_CreateMatchWithInitialTurn
Creates an instance of an asynchronous match with an initial turn.
Public methodAsyncMatch_DeleteMatch
Removes the match and match history from the server. DEBUG ONLY, in production it is recommended the user leave it as completed.
Public methodAsyncMatch_FindCompleteMatches
Returns all matches that are in a COMPLETE state for which the player is involved.
Public methodAsyncMatch_FindMatches
Returns all matches that are NOT in a COMPLETE state for which the player is involved.
Public methodAsyncMatch_ReadMatch
Returns the current state of the given match.
Public methodAsyncMatch_ReadMatchHistory
Returns the match history of the given match.
Public methodAsyncMatch_SubmitTurn
Submits a turn for the given match.
Public methodAsyncMatch_UpdateMatchSummaryData
Allows the current player (only) to update Summary data without having to submit a whole turn.
Public methodAuthentication_AuthenticateAnonymous
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_AuthenticateEmailPassword
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_AuthenticateExternal
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_AuthenticatePhone
Authenticate the user via wechat
Public methodAuthentication_AuthenticateUniversal
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_AuthenticateWechat
Authenticate the user via wechat
Public methodAuthentication_CheckUsernameExists
Public methodAuthentication_ClearSavedProfileID
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_GenerateAnonymousId
Used to create the anonymous installation id for the brainCloud profile.
Public methodAuthentication_GetWeChatQRPageURL
@Authentication_GetWeChatQRPageURL_desc
Public methodAuthentication_Initialize
Initialize - initializes the identity service with a saved anonymous installation id and most recently used profile id
Public methodAuthentication_RequestSmsCode
Request an SMS code sent to a phone prior to authentication.
Public methodAuthentication_ResetEmailPassword
Reset Email password - Sends a password reset email to the specified address
Public methodClient_EnableLogging
Enable logging of brainCloud transactions (comms etc)
Public methodClient_EnableNetworkErrorMessageCaching
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_FlushCachedMessages
Flushes the cached messages to resume API call processing. This will dump all of the cached messages in the queue.
Public methodClient_GetAuthenticationPacketTimeout
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_GetPacketTimeouts
Returns the list of packet timeouts.
Public methodClient_GetSessionId
Returns the sessionId or empty string if no session present.
Public methodClient_GetUploadLowTransferRateThreshold
Returns the low transfer rate threshold in bytes/sec
Public methodClient_GetUploadLowTransferRateTimeout
Returns the low transfer rate timeout in secs
Public methodClient_Initialize_SSS
Method initializes the BrainCloudClient.
Public methodClient_Initialize_SSSS
Method initializes the BrainCloudClient.
Public methodClient_InitializeIdentity
Initialize the identity aspects of brainCloud.
Public methodClient_InsertEndOfMessageBundleMarker
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_IsAuthenticated
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_IsInitialized
Returns true if brainCloud has been initialized.
Public methodClient_OverrideCountryCode
Sets the country code sent to brainCloud when a user authenticates. Will override any auto detected country.
Public methodClient_OverrideLanguageCode
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_ResetCommunication
Resets all messages and calls to the server
Public methodClient_RetryCachedMessages
Attempts to resend any cached messages. If no messages are in the cache, this method does nothing.
Public methodClient_SetAuthenticationPacketTimeout
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_SetPacketTimeouts
Public methodClient_SetPacketTimeoutsToDefault
Sets the packet timeouts back to default.
Public methodClient_SetUploadLowTransferRateThreshold
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_SetUploadLowTransferRateTimeout
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_Update
Update method needs to be called regularly in order to process incoming and outgoing messages.
Public methodDataStream_CustomPageEvent
Creates custom data stream page event
Public methodDataStream_CustomScreenEvent
Creates custom data stream screen event
Public methodDataStream_CustomTrackEvent
Creates custom data stream track event
Public methodDispose
Releases all resources used by the BrainCloudServiceClient
Public methodEntity_CreateEntity
Method creates a new entity on the server.
Public methodEntity_DeleteEntity
Method deletes the given entity on the server.
Public methodEntity_DeleteSingleton
Method deletes the given singleton on the server.
Public methodEntity_GetEntitiesByType
Method returns all user entities that match the given type.
Public methodEntity_GetEntity
Method to get a specific entity.
Public methodEntity_GetList
Method gets list of entities from the server base on type and/or where clause
Public methodEntity_GetListCount
Method gets a count of entities based on the where clause
Public methodEntity_GetPage
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_GetPageOffset
Method to retrieve previous or next pages after having called the GetPage method.
Public methodEntity_GetSharedEntitiesForProfileId
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_GetSharedEntitiesListForProfileId
Method gets list of shared entities for the specified user based on type and/or where clause
Public methodEntity_GetSharedEntityForProfileId
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_GetSingleton
Method retrieves a singleton entity on the server. If the entity doesn't exist, null is returned.
Public methodEntity_IncrementSharedUserEntityData
Partial increment of shared entity data field items. Partial set of items incremented as specified.
Public methodEntity_IncrementUserEntityData
Partial increment of entity data field items. Partial set of items incremented as specified.
Public methodEntity_UpdateEntity
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_UpdateSharedEntity
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_UpdateSingleton
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_DeleteIncomingEvent
Delete an event out of the user's incoming mailbox.
Public methodEvent_GetEvents
Get the events currently queued for the user.
Public methodEvent_SendEvent
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_UpdateIncomingEventData
Updates an event in the user's incoming event mailbox.
Public methodFile_CancelDownload
@BrainCloud_CancelDownload_desc
Public methodFile_CancelUpload
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_DeleteUserFile
Deletes a single user file.
Public methodFile_DeleteUserFiles
Delete multiple user files
Public methodFile_DownloadFile
@BrainCloud_DownloadFile_desc
Public methodFile_GetCDNUrl
Returns the CDN URL for a file object.
Public methodFile_GetDownloadInfo
@BrainCloud_GetDownloadInfo_desc
Public methodFile_GetUploadBytesTransferred
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_GetUploadProgress
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_GetUploadTotalBytesToTransfer
Returns the total number of bytes that will be uploaded or -1 if upload not found.
Public methodFile_ListUserFiles_SFO
List all user files
Public methodFile_ListUserFiles_SNSFO
List user files from the given cloud path
Public methodFile_UploadFile
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_AcceptFriendInvitation
Public methodFriend_AddFriends
Public methodFriend_FindUserByUniversalId
Public methodFriend_FindUsersByExactName
Finds a list of users matching the search text by performing an exact search of all user names.
Public methodFriend_FindUsersBySubstrName
Finds a list of users matching the search text by performing a substring search of all user names.
Public methodFriend_GetSummaryDataForFriends
Returns user state of the player's friends.
Public methodFriend_GetSummaryDataForProfileId
Returns user state of a particular user.
Public methodFriend_GetSummaryDataForProfileIds
Public methodFriend_GetSummaryDataForRecentlyMetPlayers
Returns user state of player's recently met.
Public methodFriend_GetUsersOnlineStatus
Public methodFriend_ListFriendInvitationsReceived
Public methodFriend_ListFriendInvitationsSent
Public methodFriend_ListFriends
Public methodFriend_ReadFriendEntity
Returns a particular entity of a particular friend.
Public methodFriend_ReadFriendsEntities
Returns entities of all friends based on type and/or subtype.
Public methodFriend_ReadFriendUserState
Returns user state of a particular friend.
Public methodFriend_RejectFriendInvitation
Public methodFriend_RemoveFriend
Public methodFriend_RemoveFriends
Public methodFriend_SendFriendInvitation
Public methodGamification_AwardAchievements
Public methodGamification_ReadAchievedAchievements
Method retrives the list of achieved achievements.
Public methodGamification_ReadAchievements
Read all of the achievements defined for the game.
Public methodGamification_ReadAllGamification
Method retrieves all gamification data for the player.
Public methodGamification_ReadCompletedMilestones
Method retrieves the list of completed milestones.
Public methodGamification_ReadCompletedQuests
Method returns all completed quests.
Public methodGamification_ReadInProgressMilestones
Method retrieves the list of in progress milestones
Public methodGamification_ReadInProgressQuests
Method returns all in progress quests.
Public methodGamification_ReadMilestones
Method retrieves all milestones defined for the game.
Public methodGamification_ReadMilestonesByCategory
Method retrieves milestones of the given category.
Public methodGamification_ReadNotStartedQuests
Method returns all quests that haven't been started.
Public methodGamification_ReadQuests
Method retrieves all of the quests defined for the game.
Public methodGamification_ReadQuestsByCategory
Method returns all quests for the given category.
Public methodGamification_ReadQuestsWithBasicPercentage
Method returns all quests with a basic percentage.
Public methodGamification_ReadQuestsWithComplexPercentage
Method returns all quests with a complex percentage.
Public methodGamification_ReadQuestsWithStatus
Method returns all quests with status.
Public methodGamification_ReadXpLevelsMetaData
Method returns all defined xp levels and any rewards associated with those xp levels.
Public methodGamification_ResetMilestones
Public methodGlobalApp_ReadProperties
Method reads all the global properties of the game
Public methodGlobalEntity_CreateEntity
Method creates a new entity on the server.
Public methodGlobalEntity_CreateEntityWithIndexedId
Method creates a new entity on the server with an indexed id.
Public methodGlobalEntity_DeleteEntity
Method deletes an existing entity on the server.
Public methodGlobalEntity_GetList
Method gets list of entities from the server base on type and/or where clause
Public methodGlobalEntity_GetListByIndexedId
Method gets list of entities from the server base on indexed id
Public methodGlobalEntity_GetListCount
Method gets a count of entities based on the where clause
Public methodGlobalEntity_GetPage
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_GetPageOffset
Method to retrieve previous or next pages after having called the GetPage method.
Public methodGlobalEntity_GetRandomEntitiesMatching
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_IncrementGlobalEntityData
Partial increment of global entity data field items. Partial set of items incremented as specified.
Public methodGlobalEntity_MakeSystemEntity
Public methodGlobalEntity_ReadEntity
Method reads an existing entity from the server.
Public methodGlobalEntity_UpdateEntity
Method updates an existing entity on the server.
Public methodGlobalEntity_UpdateEntityAcl
Method updates an existing entity's Acl on the server.
Public methodGlobalEntity_UpdateEntityOwnerAndAcl
Public methodGlobalEntity_UpdateEntityTimeToLive
Method updates an existing entity's time to live on the server.
Public methodGlobalStatistics_IncrementGlobalStats
Atomically increment (or decrement) global statistics. Global statistics are defined through the brainCloud portal.
Public methodGlobalStatistics_ProcessStatistics
Public methodGlobalStatistics_ReadAllGlobalStats
Method returns all of the global statistics.
Public methodGlobalStatistics_ReadGlobalStatsForCategory
Method retrieves the global statistics for the given category.
Public methodGlobalStatistics_ReadGlobalStatsSubset
Public methodGroup_AcceptGroupInvitation
Accept an outstanding invitation to join the group.
Public methodGroup_AddGroupMember
Public methodGroup_ApproveGroupJoinRequest
Public methodGroup_AutoJoinGroup
Public methodGroup_CancelGroupInvitation
Cancel an outstanding invitation to the group.
Public methodGroup_CreateGroup
Public methodGroup_CreateGroupEntity
Public methodGroup_DeleteGroup
Delete a group.
Public methodGroup_DeleteGroupEntity
Delete a group entity.
Public methodGroup_GetMyGroups
Read information on groups to which the current user belongs.
Public methodGroup_IncrementGroupData
Increment elements for the group's data field.
Public methodGroup_IncrementGroupEntityData
Increment elements for the group entity's data field.
Public methodGroup_InviteGroupMember
Public methodGroup_JoinGroup
Join an open group or request to join a closed group.
Public methodGroup_LeaveGroup
Leave a group in which the user is a member.
Public methodGroup_ListGroupsPage
Retrieve a page of group summary information based on the specified context.
Public methodGroup_ListGroupsPageByOffset
Retrieve a page of group summary information based on the encoded context and specified page offset.
Public methodGroup_ListGroupsWithMember
Read information on groups to which the specified user belongs. Access is subject to restrictions.
Public methodGroup_ReadGroup
Read the specified group.
Public methodGroup_ReadGroupData
Read the data of the specified group.
Public methodGroup_ReadGroupEntitiesPage
Read a page of group entity information.
Public methodGroup_ReadGroupEntitiesPageByOffset
Read a page of group entity information.
Public methodGroup_ReadGroupEntity
Read the specified group entity.
Public methodGroup_ReadGroupMembers
Read the members of the group.
Public methodGroup_RejectGroupInvitation
Reject an outstanding invitation to join the group.
Public methodGroup_RejectGroupJoinRequest
Reject an outstanding request to join the group.
Public methodGroup_RemoveGroupMember
Remove a member from the group.
Public methodGroup_UpdateGroupData
Updates a group's data.
Public methodGroup_UpdateGroupEntityData
Update a group entity.
Public methodGroup_UpdateGroupMember
Public methodGroup_UpdateGroupName
Updates a group's name.
Public methodIdentity_AttachEmailIdentity
Attach a Email and Password identity to the current profile.
Public methodIdentity_AttachParentWithIdentity
Attach a new identity to a parent app
Public methodIdentity_AttachPeerProfile
Attaches a peer identity to this user's profile
Public methodIdentity_AttachUniversalIdentity
Attach a Universal (userId + password) identity to the current profile.
Public methodIdentity_ChangeEmailIdentity
Allows email identity email address to be changed
Public methodIdentity_DetachEmailIdentity
Detach the e-mail identity from the current profile
Public methodIdentity_DetachParent
Detaches parent from this user's profile
Public methodIdentity_DetachPeer
Detaches a peer identity from this user's profile
Public methodIdentity_DetachUniversalIdentity
Detach the universal identity from the current profile
Public methodIdentity_GetChildProfiles
Returns a list of all child profiles in child Apps
Public methodIdentity_GetExpiredIdentities
Retrieve list of expired identities
Public methodIdentity_GetIdentities
Retrieve list of identities
Public methodIdentity_GetPeerProfiles
Retrieves a list of attached peer profiles
Public methodIdentity_MergeEmailIdentity
Merge the profile associated with the provided e=mail with the current profile.
Public methodIdentity_MergeUniversalIdentity
Merge the profile associated with the provided e=mail with the current profile.
Public methodIdentity_RefreshIdentity
Refreshes an identity for this user
Public methodIdentity_SwitchToChildProfile
Switch to a Child Profile
Public methodIdentity_SwitchToParentProfile
Switch to a Parent Profile
Public methodIdentity_SwitchToSingletonChildProfile
Switches to the child profile of an app when only one profile exists If multiple profiles exist this returns an error
Public methodLobby_CloseLobby
Close a lobby so players can't join.
Public methodLobby_CreateLobby
Public methodLobby_DestroyLobby
Destroy a lobby.
Public methodLobby_FindFriendsLobbies
Find lobbies with the player's friends in them.
Public methodLobby_FindLobbies
Find lobbies the player can join.
Public methodLobby_GetMyLobbies
Get a list of lobbies the player is a member of.
Public methodLobby_JoinLobby
Join a lobby.
Public methodLobby_LeaveLobby
Leave a lobby.
Public methodLobby_OpenLobby
Open a lobby so players can join.
Public methodLobby_StartGame
Start a lobby game.
Public methodMail_SendAdvancedEmail
Sends an advanced email to the specified user
Public methodMail_SendAdvancedEmailByAddress
Sends an advanced email to the specified email address
Public methodMail_SendBasicEmail
Sends a simple text email to the specified user
Public methodMatchMaking_DecrementPlayerRating
Decrements player rating
Public methodMatchMaking_DisableMatchMaking
Disables Match Making for the Player
Public methodMatchMaking_EnableMatchMaking
Enables Match Making for the Player
Public methodMatchMaking_FindPlayers
Finds matchmaking enabled players
Public methodMatchMaking_FindPlayersUsingFilter
Finds matchmaking enabled players using a cloud code filter
Public methodMatchMaking_FindPlayersWithAttributes
Finds matchmaking enabled players with additional attributes
Public methodMatchMaking_FindPlayersWithAttributesUsingFilter
Finds matchmaking enabled players using a cloud code filter and additional attributes
Public methodMatchMaking_GetShieldExpiry
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_IncrementPlayerRating
Increments player rating
Public methodMatchMaking_IncrementShieldOnFor
Increases the shield on time by specified number of minutes
Public methodMatchMaking_Read
Read match making record
Public methodMatchMaking_ResetPlayerRating
Resets player rating
Public methodMatchMaking_SetPlayerRating
Sets player rating
Public methodMatchMaking_TurnShieldOff
Turns shield off
Public methodMatchMaking_TurnShieldOn
Turns shield on
Public methodMatchMaking_TurnShieldOnFor
Turns shield on for the specified number of minutes
Public methodOneWayMatch_CancelMatch
Cancels a match
Public methodOneWayMatch_CompleteMatch
Completes a match
Public methodOneWayMatch_StartMatch
Starts a match
Public methodParty_AcceptPartyInvitation
Public methodParty_GetFriendsParties
Public methodParty_GetMyParty
Public methodParty_GetPartyInfo
Public methodParty_JoinParty
Public methodParty_LeaveParty
Public methodParty_ListPartyInvitations
Public methodParty_RejectPartyInvitation
Public methodParty_SendPartyInvitation
Public methodPatch_GetGameManifest
Public methodPlaybackStream_AddEvent
Adds a stream event
Public methodPlaybackStream_DeleteStream
Deletes a stream
Public methodPlaybackStream_EndStream
Ends a stream
Public methodPlaybackStream_GetRecentStreamsForInitiatingPlayer
Gets recent streams for initiating player
Public methodPlaybackStream_GetRecentStreamsForTargetPlayer
Gets recent streams for target player
Public methodPlaybackStream_ReadStream
Reads a stream
Public methodPlaybackStream_StartStream
Starts a stream
Public methodPlayerState_DeleteUser
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_GetAttributes
Retrieve the user's attributes.
Public methodPlayerState_Logout
Logs user out of server.
Public methodPlayerState_ReadUserState
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_RemoveAttributes
Public methodPlayerState_ResetUser
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_UpdateAttributes
Update user's attributes.
Public methodPlayerState_UpdateContactEmail
Update the user's contact email. Note this is unrelated to email authentication.
Public methodPlayerState_UpdateSummaryFriendData
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_UpdateUserName
Sets the user name.
Public methodPlayerState_UpdateUserPictureUrl
Updates player's picture URL.
Public methodPlayerStatistics_GetNextExperienceLevel
Returns JSON representing the next experience level for the user.
Public methodPlayerStatistics_IncrementExperiencePoints
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_DSFO
Public methodPlayerStatistics_IncrementUserStats_SSFO
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_ProcessStatistics
Public methodPlayerStatistics_ReadAllUserStats
Read all available user statistics.
Public methodPlayerStatistics_ReadUserStatsForCategory
Method retrieves the user statistics for the given category.
Public methodPlayerStatistics_ReadUserStatsSubset
Public methodPlayerStatistics_ResetAllUserStats
Reset all of the statistics for this user back to their initial value.
Public methodPlayerStatistics_SetExperiencePoints
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_TriggerStatsEvent
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_TriggerStatsEvents
See documentation for TriggerStatsEvent for more documentation.
Public methodProduct_GetCurrency
Gets the player's currency for the given currency type or all currency types if null passed in.
Public methodProduct_GetEligiblePromotions
Returns the eligible promotions for the player.
Public methodProduct_GetSalesInventory
Method gets the active sales inventory for the passed-in currency type.
Public methodProduct_GetSalesInventoryByCategory
Method gets the active sales inventory for the passed-in currency type and category.
Public methodProduct_VerifyItunesReceipt
Verify ITunes Receipt. On success, the player will be awarded the associated currencies.
Public methodProduct_VerifyMicrosoftReceipt
Verify Microsoft Receipt. On success, the player will be awarded the associated currencies.
Public methodProfanity_ProfanityCheck
Checks supplied text for profanity.
Public methodProfanity_ProfanityIdentifyBadWords
Checks supplied text for profanity and returns a list of bad wors.
Public methodProfanity_ProfanityReplaceText
Replaces the characters of profanity text with a passed character(s).
Public methodPushNotification_DeregisterAllPushNotificationDeviceTokens
Deregisters all device tokens currently registered to the user.
Public methodPushNotification_DeregisterPushNotificationDeviceToken
Deregisters the given device token from the server to disable this device from receiving push notifications.
Public methodPushNotification_RegisterPushNotificationDeviceToken
Registers the given device token with the server to enable this device to receive push notifications.
Public methodPushNotification_ScheduleNormalizedPushNotificationMinutes
Schedules a normalized push notification to a user
Public methodPushNotification_ScheduleNormalizedPushNotificationUTC
Schedules a normalized push notification to a user
Public methodPushNotification_ScheduleRawPushNotificationMinutes
Schedules raw notifications based on user local time.
Public methodPushNotification_ScheduleRawPushNotificationUTC
Schedules raw notifications based on user local time.
Public methodPushNotification_ScheduleRichPushNotificationMinutes
Schedules a rich push notification to a user
Public methodPushNotification_ScheduleRichPushNotificationUTC
Schedules a rich push notification to a user
Public methodPushNotification_SendNormalizedPushNotification
Sends a notification to a user consisting of alert content and custom data.
Public methodPushNotification_SendNormalizedPushNotificationBatch
Public methodPushNotification_SendNormalizedPushNotificationToGroup
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_SendRawPushNotification
Sends a raw push notification to a target user.
Public methodPushNotification_SendRawPushNotificationBatch
Public methodPushNotification_SendRawPushNotificationToGroup
Sends a raw push notification to a target group.
Public methodPushNotification_SendRichPushNotification
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_SendRichPushNotificationWithParams
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_SendSimplePushNotification
Sends a simple push notification based on the passed in message. NOTE: It is possible to send a push notification to oneself.
Public methodPushNotification_SendTemplatedPushNotificationToGroup
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_CancelScheduledScript
Cancels a scheduled cloud code script
Public methodScript_RunParentScript
Run a cloud script in a parent app
Public methodScript_RunPeerScript
Runs a script from the context of a peer
Public methodScript_RunPeerScriptAsynch
Runs a script asynchronously from the context of a peer This operation does not wait for the script to complete before returning
Public methodScript_RunScript
Executes a script on the server.
Public methodScript_ScheduleRunScriptMinutes
Allows cloud script executions to be scheduled
Public methodScript_ScheduleRunScriptUTC
Public methodShopping_AddToCart_ISFO
Public methodShopping_AddToCart_SISFO
Add a product to the player's shopping cart.
Public methodShopping_AddToWishlist
Add an item to the player's wishlist.
Public methodShopping_EmptyCart
Empty the player's shopping cart.
Public methodShopping_EmptyWishlist
Remove all items from the player's wishlist.
Public methodShopping_FunnyUserReview
@2222188570
Public methodShopping_GetCart
Retrieve the player's current shopping cart.
Public methodShopping_GetFeaturedProducts
Return a list of featured products.
Public methodShopping_GetMyLibrary
@2304250631
Public methodShopping_GetMyOrders
@919332756
Public methodShopping_GetMyUserTags
@274383141
Public methodShopping_GetMyWishlist
Returns the current player's wishlist.
Public methodShopping_GetPopularProducts
Return a list of the mos tpopular products.
Public methodShopping_GetPopularTags
@1350446922
Public methodShopping_GetProduct
@2681224790
Public methodShopping_GetProductsByTag
@3387279661
Public methodShopping_GetProductsByTags
Public methodShopping_GetRecentlyCreatedProducts
Return a list of recently created products.
Public methodShopping_GetRecentlyUpdatedProducts
Return a list of recently updated products.
Public methodShopping_GetRecommendedProducts
@2681224790
Public methodShopping_GetSpecialOffers
Return a list of special offers.
Public methodShopping_GetUserReviews
Get a list of user reviews for a product.
Public methodShopping_GetUserTags
@1777617418
Public methodShopping_GetWishlist
Returns the specified player's wishlist.
Public methodShopping_LikeUserReview
@3972606582
Public methodShopping_RemoveFromCart
Remove an item from the player's shopping cart.
Public methodShopping_RemoveFromWishlist_ISFO
Public methodShopping_RemoveFromWishlist_SSFO
Remove an item from the player's wishlist.
Public methodShopping_RemoveUserTag
@2944656417
Public methodShopping_SubmitUserReview
Submit a user review of a product.
Public methodShopping_SubmitUserTag
@3717774610
Public methodShopping_SubmitUserTags
Public methodShopping_UnfunnyUserReview
@2806051775
Public methodShopping_UnlikeUserReview
@594218927
Public methodSocialFeed_BlockPlayer
Public methodSocialFeed_GetActivity
Public methodSocialFeed_GetComment
Public methodSocialFeed_HidePlayer
Public methodSocialFeed_LikeActivity
Public methodSocialFeed_LikeComment
Public methodSocialFeed_PostComment
Public methodSocialFeed_PostCommentReply
Public methodSocialFeed_ReadCommentReplies
Public methodSocialFeed_ReadComments
Public methodSocialFeed_ReadFilteredSocialFeed
Public methodSocialFeed_ReadFriendsSocialFeed
Public methodSocialFeed_ReadSocialFeed
Public methodSocialFeed_SetFeedVisibility
Public methodSocialFeed_ShareAchievement
Public methodSocialFeed_ShareApp
Public methodSocialFeed_ShareChannel
Public methodSocialFeed_ShareGameGuide
Public methodSocialFeed_ShareLink
Public methodSocialFeed_ShareScreenshot
Public methodSocialFeed_ShareVideo
Public methodSocialFeed_UnblockPlayer
Public methodSocialFeed_UnhidePlayer
Public methodSocialFeed_UnlikeActivity
Public methodSocialFeed_UnlikeComment
Public methodSocialLeaderboard_GetGlobalLeaderboardEntryCount
Gets the number of entries in a global leaderboard
Public methodSocialLeaderboard_GetGlobalLeaderboardEntryCountByVersion
Gets the number of entries in a global leaderboard
Public methodSocialLeaderboard_GetGlobalLeaderboardPage
Public methodSocialLeaderboard_GetGlobalLeaderboardPageByVersion
Public methodSocialLeaderboard_GetGlobalLeaderboardVersions
Gets the global leaderboard versions.
Public methodSocialLeaderboard_GetGlobalLeaderboardView
Public methodSocialLeaderboard_GetGlobalLeaderboardViewByVersion
Public methodSocialLeaderboard_GetGroupSocialLeaderboard
Retrieve the social leaderboard for a group.
Public methodSocialLeaderboard_GetMultiSocialLeaderboard
Public methodSocialLeaderboard_GetPlayerScore
Gets a player's score from a leaderboard
Public methodSocialLeaderboard_GetPlayerScoresFromLeaderboards
Public methodSocialLeaderboard_GetPlayersSocialLeaderboard
Public methodSocialLeaderboard_GetSocialLeaderboard
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_ListLeaderboards
Retrieve a list of all leaderboards
Public methodSocialLeaderboard_PostScoreToDynamicLeaderboard
Public methodSocialLeaderboard_PostScoreToDynamicLeaderboardDays
Public methodSocialLeaderboard_PostScoreToLeaderboard
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_RemovePlayerScore
Removes a player's score from the leaderboard
Public methodTelemetry_EndTelemetryEvent
Public methodTelemetry_EndTelemetrySession
Public methodTelemetry_LogTelemetryEvent
Public methodTelemetry_StartTelemetryEvent
Public methodTelemetry_StartTelemetrySession
Public methodTime_ReadServerTime
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_ClaimTournamentReward
Processes any outstanding rewards for the given player
Public methodTournament_GetTournamentStatus
Get tournament status associated with a leaderboard
Public methodTournament_JoinTournament
Join the specified tournament. Any entry fees will be automatically collected.
Public methodTournament_LeaveTournament
Removes player's score from tournament leaderboard
Public methodTournament_PostTournamentScore
Public methodTournament_PostTournamentScoreWithResults
Public methodTournament_ViewCurrentReward
Returns the user's expected reward based on the current scores
Public methodTournament_ViewReward
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