#include <OnlineCloudSaveInterfaceAccelByte.h>
Public Member Functions | |
| DEFINE_ONLINE_PLAYER_DELEGATE_THREE_PARAM (MAX_LOCAL_PLAYERS, OnGetUserRecordCompleted, const FOnlineError &, const FString &, const FAccelByteModelsUserRecord &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_TWO_PARAM (MAX_LOCAL_PLAYERS, OnReplaceUserRecordCompleted, const FOnlineError &, const FString &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_TWO_PARAM (MAX_LOCAL_PLAYERS, OnDeleteUserRecordCompleted, const FOnlineError &, const FString &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_TWO_PARAM (MAX_LOCAL_PLAYERS, OnBulkGetPublicUserRecordCompleted, const FOnlineError &, const FListAccelByteModelsUserRecord &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_THREE_PARAM (MAX_LOCAL_PLAYERS, OnGetGameRecordCompleted, const FOnlineError &, const FString &, const FAccelByteModelsGameRecord &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_TWO_PARAM (MAX_LOCAL_PLAYERS, OnReplaceGameRecordCompleted, const FOnlineError &, const FString &) | |
| DEFINE_ONLINE_DELEGATE_TWO_PARAM (OnDeleteGameRecordTTLConfigCompleted, const FOnlineError &, const FString &) | |
| DEFINE_ONLINE_DELEGATE_THREE_PARAM (OnGetAdminGameRecordCompleted, const FOnlineError &, const FString &, const FAccelByteModelsAdminGameRecord &) | |
| DEFINE_ONLINE_DELEGATE_TWO_PARAM (OnModifyAdminGameRecordCompleted, const FOnlineError &, const FString &) | |
| DEFINE_ONLINE_DELEGATE_TWO_PARAM (OnDeleteAdminGameRecordTTLConfigCompleted, const FOnlineError &, const FString &) | |
| bool | GetUserRecord (int32 LocalUserNum, const FString &Key) |
| Get a record (arbitrary JSON data) by its key in user-level. | |
| bool | GetUserRecord (int32 LocalUserNum, const FString &Key, const FUniqueNetIdAccelByteUserRef &RecordUserId) |
| Get a record (arbitrary JSON data) by its key in user-level. Only for request by Game Server. | |
| bool | GetPublicUserRecord (int32 LocalUserNum, const FString &Key) |
| Get a public record (arbitrary JSON data) by its key in user-level. | |
| bool | GetPublicUserRecord (int32 LocalUserNum, const FString &Key, const FUniqueNetIdAccelByteUserRef &RecordUserId) |
| Get a public record (arbitrary JSON data) by its key in user-level. | |
| bool | ReplaceUserRecord (int32 LocalUserNum, const FString &Key, const FJsonObject &RecordRequest, const FUniqueNetIdAccelByteUserRef &TargetUserId=FUniqueNetIdAccelByteUser::Invalid()) |
| 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. | |
| bool | ReplacePublicUserRecord (int32 LocalUserNum, const FString &Key, const FJsonObject &RecordRequest, const FUniqueNetIdAccelByteUserRef &TargetUserId=FUniqueNetIdAccelByteUser::Invalid()) |
| 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. | |
| bool | BulkReplaceUserRecord (const FString &Key, const TMap< FUniqueNetIdAccelByteUserRef, FJsonObject > &Request) |
| 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. | |
| bool | DeleteUserRecord (int32 LocalUserNum, const FString &Key, const FUniqueNetIdAccelByteUserRef &TargetUserId=FUniqueNetIdAccelByteUser::Invalid()) |
| Delete a record under the given key in user-level. | |
| bool | BulkGetUserRecord (const FString &Key, const TArray< FUniqueNetIdAccelByteUserRef > &UniqueNetIds) |
| Get a record (arbitrary JSON data) by its key and userId in user-level. Only for request by Game Server. | |
| bool | BulkGetPublicUserRecord (int32 LocalUserNum, const FString &Key, const TArray< FString > &UserIds) |
| Get a public record (arbitrary JSON data) by its key and userId in user-level. | |
| bool | BulkGetPublicUserRecord (int32 LocalUserNum, const FString &Key, const TArray< FUniqueNetIdAccelByteUserRef > &UniqueNetIds) |
| Get a public record (arbitrary JSON data) by its key and userId in user-level. | |
| bool | GetGameRecord (int32 LocalUserNum, const FString &Key, bool bAlwaysRequestToService=false) |
| Get a record by its key in namespace-level. | |
| bool | GetGameRecordFromCache (const FString &Key, FAccelByteModelsGameRecord &OutRecord) |
| Get a record by its key in namespace-level from cache. | |
| bool | ReplaceGameRecord (int32 LocalUserNum, const FString &Key, const FJsonObject &RecordRequest) |
| Replace a record by its key in namespace-level. | |
| bool | ReplaceGameRecord (int32 LocalUserNum, const FString &Key, ESetByMetadataRecord SetBy, const FJsonObject &RecordRequest, const FTTLConfig &TTLConfig) |
| Replace a record by its key in namespace-level. | |
| bool | DeleteGameRecordTTLConfig (int32 LocalUserNum, const FString &Key) |
| Delete the ttl config of the game record. | |
| bool | GetAdminGameRecord (int32 LocalUserNum, const FString &Key, bool bAlwaysRequestToService=false) |
| Get a record by its key in namespace-level. Only for request by Game Server. | |
| bool | GetAdminGameRecordFromCache (const FString &Key, FAccelByteModelsAdminGameRecord &OutRecord) |
| Get a record by its key in namespace-level from cache. Only for request by Game Server. | |
| bool | CreateAdminGameRecord (int32 LocalUserNum, const FString &Key, const FJsonObject &RecordRequest, const TArray< FString > &Tags, const FTTLConfig &TTLConfig) |
| Replace a record by its key in namespace-level. Only for request by Game Server. | |
| bool | ReplaceAdminGameRecord (int32 LocalUserNum, const FString &Key, const FJsonObject &RecordRequest, const FTTLConfig &TTLConfig) |
| Replace a record by its key in namespace-level. Only for request by Game Server. | |
| bool | DeleteAdminGameRecordTTLConfig (int32 LocalUserNum, const FString &Key) |
| Delete the ttl config of the admin game record. | |
Static Public Member Functions | |
| static bool | GetFromSubsystem (const IOnlineSubsystem *Subsystem, FOnlineCloudSaveAccelBytePtr &OutInterfaceInstance) |
| static bool | GetFromWorld (const UWorld *World, FOnlineCloudSaveAccelBytePtr &OutInterfaceInstance) |
Protected Member Functions | |
| FOnlineCloudSaveAccelByte () | |
Protected Attributes | |
| FOnlineSubsystemAccelByteWPtr | AccelByteSubsystem = nullptr |
Implementation of Cloud Save service from AccelByte services
|
inlineprotected |
Hidden default constructor, the constructor that takes in a subsystem instance should be used instead.
| bool FOnlineCloudSaveAccelByte::BulkGetPublicUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const TArray< FString > & | UserIds ) |
Get a public record (arbitrary JSON data) by its key and userId in user-level.
| LocalUserNum | Index of user that is attempting to get bulk public user record |
| Key | Key of record. |
| UserIds | List UserId(s) of the record owner. |
| bool FOnlineCloudSaveAccelByte::BulkGetPublicUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const TArray< FUniqueNetIdAccelByteUserRef > & | UniqueNetIds ) |
Get a public record (arbitrary JSON data) by its key and userId in user-level.
| LocalUserNum | Index of user that is attempting to get bulk public user record |
| Key | Key of record. |
| UniqueNetIds | List UniqueNetId(UserId)(s) of the record owner. |
| bool FOnlineCloudSaveAccelByte::BulkGetUserRecord | ( | const FString & | Key, |
| const TArray< FUniqueNetIdAccelByteUserRef > & | UniqueNetIds ) |
Get a record (arbitrary JSON data) by its key and userId in user-level. Only for request by Game Server.
| Key | Key of record. |
| UniqueNetIds | List UniqueNetId(UserId)(s) of the record owner. |
| bool FOnlineCloudSaveAccelByte::BulkReplaceUserRecord | ( | const FString & | Key, |
| const TMap< FUniqueNetIdAccelByteUserRef, FJsonObject > & | Request ) |
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 | The record key to replace |
| Request | contain the userId and the record value to replace |
| bool FOnlineCloudSaveAccelByte::CreateAdminGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FJsonObject & | RecordRequest, | ||
| const TArray< FString > & | Tags, | ||
| const FTTLConfig & | TTLConfig ) |
Replace a record by its key in namespace-level. Only for request by Game Server.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| RecordRequest | Record to replace in the form of Json object |
| Tags | the tags of the record. |
| TTLConfig | The configuration to control the action taken if the record has expired. If the action set to NONE, then it will not send the TTL (Time to live) meta data. |
| bool FOnlineCloudSaveAccelByte::DeleteAdminGameRecordTTLConfig | ( | int32 | LocalUserNum, |
| const FString & | Key ) |
Delete the ttl config of the admin game record.
| LocalUserNum | Index of user that is attempting to delete the ttl config |
| Key | The record key to delete |
| bool FOnlineCloudSaveAccelByte::DeleteGameRecordTTLConfig | ( | int32 | LocalUserNum, |
| const FString & | Key ) |
Delete the ttl config of the game record.
| LocalUserNum | Index of user that is attempting to delete the ttl config |
| Key | The record key to delete |
| bool FOnlineCloudSaveAccelByte::DeleteUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FUniqueNetIdAccelByteUserRef & | TargetUserId = FUniqueNetIdAccelByteUser::Invalid() ) |
Delete a record under the given key in user-level.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to delete |
| TargetUserId | Target of AccelByte User Net Id for server to call the request |
| bool FOnlineCloudSaveAccelByte::GetAdminGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| bool | bAlwaysRequestToService = false ) |
Get a record by its key in namespace-level. Only for request by Game Server.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| bool FOnlineCloudSaveAccelByte::GetAdminGameRecordFromCache | ( | const FString & | Key, |
| FAccelByteModelsAdminGameRecord & | OutRecord ) |
Get a record by its key in namespace-level from cache. Only for request by Game Server.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
|
static |
Convenience method to get an instance of this interface from the subsystem passed in.
| Subsystem | Subsystem instance that we wish to get this interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
|
static |
Convenience method to get an instance of this interface from the subsystem associated with the world passed in.
| World | World instance that we wish to get the interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
| bool FOnlineCloudSaveAccelByte::GetGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| bool | bAlwaysRequestToService = false ) |
Get a record by its key in namespace-level.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| bool FOnlineCloudSaveAccelByte::GetGameRecordFromCache | ( | const FString & | Key, |
| FAccelByteModelsGameRecord & | OutRecord ) |
Get a record by its key in namespace-level from cache.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| bool FOnlineCloudSaveAccelByte::GetPublicUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key ) |
Get a public record (arbitrary JSON data) by its key in user-level.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to delete |
| bool FOnlineCloudSaveAccelByte::GetPublicUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FUniqueNetIdAccelByteUserRef & | RecordUserId ) |
Get a public record (arbitrary JSON data) by its key in user-level.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to delete |
| RecordUserId | The UserId of the record owner |
| bool FOnlineCloudSaveAccelByte::GetUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key ) |
Get a record (arbitrary JSON data) by its key in user-level.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to delete |
| bool FOnlineCloudSaveAccelByte::GetUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FUniqueNetIdAccelByteUserRef & | RecordUserId ) |
Get a record (arbitrary JSON data) by its key in user-level. Only for request by Game Server.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to delete |
| RecordUserId | The UserId of the record owner |
| bool FOnlineCloudSaveAccelByte::ReplaceAdminGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FJsonObject & | RecordRequest, | ||
| const FTTLConfig & | TTLConfig ) |
Replace a record by its key in namespace-level. Only for request by Game Server.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| RecordRequest | Record to replace in the form of Json object |
| TTLConfig | The configuration to control the action taken if the record has expired. If the action set to NONE, then it will not send the TTL (Time to live) meta data. |
| bool FOnlineCloudSaveAccelByte::ReplaceGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FJsonObject & | RecordRequest ) |
Replace a record by its key in namespace-level.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| RecordRequest | Record to replace in the form of Json object |
| bool FOnlineCloudSaveAccelByte::ReplaceGameRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| ESetByMetadataRecord | SetBy, | ||
| const FJsonObject & | RecordRequest, | ||
| const FTTLConfig & | TTLConfig ) |
Replace a record by its key in namespace-level.
| LocalUserNum | Index of user that is attempting to get game record |
| Key | The record key to get |
| SetBy | Metadata record set by server or client |
| RecordRequest | Record to replace in the form of Json object |
| TTLConfig | The configuration to control the action taken if the record has expired. If the action set to NONE, then it will not send the TTL (Time to live) meta data. |
| bool FOnlineCloudSaveAccelByte::ReplacePublicUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FJsonObject & | RecordRequest, | ||
| const FUniqueNetIdAccelByteUserRef & | TargetUserId = FUniqueNetIdAccelByteUser::Invalid() ) |
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.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to replace |
| RecordRequest | Record to replace in the form of Json object |
| TargetUserId | Target of AccelByte User Net Id for server to call the request |
| bool FOnlineCloudSaveAccelByte::ReplaceUserRecord | ( | int32 | LocalUserNum, |
| const FString & | Key, | ||
| const FJsonObject & | RecordRequest, | ||
| const FUniqueNetIdAccelByteUserRef & | TargetUserId = FUniqueNetIdAccelByteUser::Invalid() ) |
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.
| LocalUserNum | Index of user that is attempting to get record |
| Key | The record key to replace |
| RecordRequest | Record to replace in the form of Json object |
| TargetUserId | Target of AccelByte User Net Id for server to call the request |
|
protected |
Instance of the subsystem that created this interface