Provide an API to access CloudSave service. More...
Public Member Functions | |
| void | SaveUserRecord (string key, Dictionary< string, object > recordRequest, bool isPublic, ResultCallback callback) |
| Save a user-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one. | |
| void | SaveUserRecord (string key, Dictionary< string, object > recordRequest, ResultCallback callback, bool isPublic=false) |
| Save a user-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one. | |
| void | GetUserRecord (string key, ResultCallback< UserRecord > callback) |
| Get a record (arbitrary JSON data) by its key in user-level. | |
| void | GetPublicUserRecord (string key, string userId, ResultCallback< UserRecord > callback) |
| Get other user's public record (arbitrary JSON data) by its key in user-level. | |
| void | ReplaceUserRecord (string key, Dictionary< string, object > recordRequest, bool isPublic, ResultCallback callback) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. | |
| void | ReplaceUserRecord (string key, Dictionary< string, object > recordRequest, ResultCallback callback, bool isPublic=false) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. | |
| void | ReplaceUserRecord (string key, bool setPublic, Dictionary< string, object > recordRequest, ResultCallback callback) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. | |
| void | ReplaceUserRecordCheckLatest (string key, DateTime lastUpdated, Dictionary< string, object > recordRequest, ResultCallback callback) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date. | |
| void | ReplaceUserRecordCheckLatest (int tryAttempt, string key, Dictionary< string, object > recordRequest, ResultCallback callback, Func< Dictionary< string, object >, Dictionary< string, object > > payloadModifier) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt. | |
| void | ReplaceUserRecordCheckLatestWithResponse (string key, DateTime lastUpdated, Dictionary< string, object > recordRequest, ResultCallback< ConcurrentReplaceUserRecordResponse > callback) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date. | |
| void | ReplaceUserRecordCheckLatestWithResponse (int tryAttempt, string key, Dictionary< string, object > recordRequest, ResultCallback< ConcurrentReplaceUserRecordResponse > callback, Func< Dictionary< string, object >, Dictionary< string, object > > payloadModifier) |
| Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt. | |
| void | DeleteUserRecord (string key, ResultCallback callback) |
| Delete a record under the given key in user-level. | |
| void | SaveGameRecord (string key, Dictionary< string, object > recordRequest, ResultCallback callback) |
| Save a namespace-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one. | |
| void | GetGameRecord (string key, ResultCallback< GameRecord > callback) |
| Get a record by its key in namespace-level. | |
| void | ReplaceGameRecord (string key, Dictionary< string, object > recordRequest, ResultCallback callback) |
| Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. | |
| void | ReplaceGameRecordCheckLatest (string key, DateTime lastUpdated, Dictionary< string, object > recordRequest, ResultCallback callback) |
| Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date. | |
| void | ReplaceGameRecordCheckLatest (int tryAttempt, string key, Dictionary< string, object > recordRequest, ResultCallback callback, Func< Dictionary< string, object >, Dictionary< string, object > > payloadModifier) |
| Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt. | |
| void | DeleteGameRecord (string key, ResultCallback callback) |
| Delete a record under the given key in namespace-level. | |
| void | BulkGetUserRecords (string[] keys, ResultCallback< UserRecords > callback) |
| Bulk get user records by keys. | |
| void | BulkGetPublicUserRecord (string key, string[] userIds, ResultCallback< UserRecords > callback) |
| Bulk get public user records by multiple userIds and keys. | |
| void | BulkGetGameRecords (string[] keys, ResultCallback< GameRecords > callback) |
| Bulk get game records by keys. | |
| void | BulkGetOtherPlayerPublicRecordKeys (string userId, ResultCallback< PaginatedBulkGetPublicUserRecordKeys > callback, int offset=0, int limit=20) |
| Bulk get other user public record keys. | |
| void | BulkGetOtherPlayerPublicRecords (string userId, BulkGetRecordsByKeyRequest data, ResultCallback< UserRecords > callback) |
| Bulk get other user public records by keys. | |
Additional Inherited Members | |
| Properties inherited from AccelByte.Core.WrapperBase | |
| Utils.AccelByteIdValidator | IdValidator [get] |
Provide an API to access CloudSave service.
|
inline |
Bulk get game records by keys.
| keys | Keys of records |
| callback | Returns a Result that contains GameRecords via callback when completed |
|
inline |
Bulk get other user public record keys.
| userId | UserId of the record owner |
| callback | Returns a Result that contains GameRecords via callback when completed |
| offset | The offset of the public record keys. Default value is 0. |
| limit | The limit of the public record keys. Default value is 20. |
|
inline |
Bulk get other user public records by keys.
| userId | UserId of the record owner |
| data | Data struct to list Key of record |
| callback | Returns a Result that contains GameRecords via callback when completed |
|
inline |
Bulk get public user records by multiple userIds and keys.
| key | Keys of records |
| userIds | Collection of AccelByte Ids |
| callback | Returns a result that contains UserRecords |
|
inline |
Bulk get user records by keys.
| keys | Keys of records |
| callback | Returns a Result that contains UserRecords via callback when completed |
|
inline |
Delete a record under the given key in namespace-level.
| key | Key of record |
| callback | Returns a Result via callback when completed |
|
inline |
Delete a record under the given key in user-level.
| key | Key of record |
| callback | Returns a Result via callback when completed |
|
inline |
Get a record by its key in namespace-level.
| key | Key of record |
| callback | Returns a Result that contains GameRecord via callback when completed |
|
inline |
Get other user's public record (arbitrary JSON data) by its key in user-level.
| key | Key of record |
| userId | UserId of the record owner |
| callback | Returns a Result that contains UserRecord via callback when completed |
|
inline |
Get a record (arbitrary JSON data) by its key in user-level.
| key | Key of record |
| callback | Returns a Result that contains UserRecord via callback when completed |
|
inline |
Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt.
| tryAttempt | Attempt to try to replace the game record. |
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
| payloadModifier | Function to modify the latest record value with your customized modifier. |
|
inline |
Replace a record in namespace-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date.
| key | Key of record |
| lastUpdated | last time the record is updated. Retrieve it from GetGameRecord. |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
| setPublic | Using metadata, True if you want the record can be accessed by other user. Default is false |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| isPublic | True if you want the record can be accessed by other user |
| callback | Returns a Result via callback when completed |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt.
| tryAttempt | Attempt to try to replace the game record. |
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
| payloadModifier | Function to modify the latest record value with your customized modifier. |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date.
| key | Key of record |
| lastUpdated | last time the record is updated. Retrieve it from GetGameRecord. |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one. Beware: Function will try to get the latest value, put it in the custom modifier and request to replace the record. will retry it again when the record is updated by other user, until exhaust all the attempt.
| tryAttempt | Attempt to try to replace the game record. |
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
| payloadModifier | Function to modify the latest record value with your customized modifier. |
|
inline |
Replace a record in user-level. If the record doesn't exist, it will create and save the record. If already exists, it will replace the existing one, but will failed if lastUpdated is not up-to-date.
| key | Key of record |
| lastUpdated | last time the record is updated. Retrieve it from GetGameRecord. |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Save a namespace-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
|
inline |
Save a user-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| isPublic | True if you want the record can be accessed by other user |
| callback | Returns a Result via callback when completed |
|
inline |
Save a user-level record. If the record doesn't exist, it will create and save the record, if already exists, it will append to the existing one.
| key | Key of record |
| recordRequest | The request of the record with JSON formatted. |
| callback | Returns a Result via callback when completed |
| isPublic | True if you want the record can be accessed by other user. Default is false |