CloudSave API for storing binaries. More...
#include <AccelByteBinaryCloudSaveApi.h>
Public Member Functions | |
| BinaryCloudSave (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr) | |
| BinaryCloudSave (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| FAccelByteTaskWPtr | SaveUserBinaryRecord (FString const &Key, FString const &FileType, bool bIsPublic, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Save a namespace-level user binary. If the binary doesn't exist, it will create the binary save, if already exists, it will append to the existing one. | |
| FAccelByteTaskWPtr | SaveUserBinaryRecord (FString const &Key, EAccelByteFileType FileType, bool bIsPublic, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Save a namespace-level user binary. If the binary doesn't exist, it will create the binary save, if already exists, it will append to the existing one. | |
| FAccelByteTaskWPtr | GetCurrentUserBinaryRecord (FString const &Key, THandler< FAccelByteModelsUserBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Get current user's binary record by its key in namespace-level. | |
| FAccelByteTaskWPtr | GetPublicUserBinaryRecord (FString const &Key, FString const &UserId, THandler< FAccelByteModelsUserBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Get a user's public binary record by its key and the owner's UserId in namespace-level. | |
| FAccelByteTaskWPtr | BulkGetCurrentUserBinaryRecords (const TArray< FString > &Keys, THandler< FAccelByteModelsListUserBinaryRecords > const &OnSuccess, FErrorHandler const &OnError) |
| Bulk get current user's binary records by their keys. | |
| FAccelByteTaskWPtr | BulkGetPublicUserBinaryRecords (const TArray< FString > &Keys, FString const &UserId, THandler< FAccelByteModelsListUserBinaryRecords > const &OnSuccess, FErrorHandler const &OnError) |
| Bulk get multiple public binary records from a single user by their keys. | |
| FAccelByteTaskWPtr | BulkGetPublicUserBinaryRecords (FString const &Key, const TArray< FString > &UserIds, THandler< FAccelByteModelsListUserBinaryRecords > const &OnSuccess, FErrorHandler const &OnError) |
| Bulk get public binary records with the same key from multiple users. | |
| FAccelByteTaskWPtr | BulkQueryCurrentUserBinaryRecords (FString const &Query, THandler< FAccelByteModelsPaginatedUserBinaryRecords > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Bulk query current user's binary records. | |
| FAccelByteTaskWPtr | BulkQueryPublicUserBinaryRecords (FString const &UserId, THandler< FAccelByteModelsPaginatedUserBinaryRecords > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Bulk query all of a user's public binary records. | |
| FAccelByteTaskWPtr | UpdateUserBinaryRecordFile (FString const &Key, FString const &FileType, FString const &FileLocation, THandler< FAccelByteModelsUserBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Update current user's binary record to point to an uploaded file. | |
| FAccelByteTaskWPtr | UpdateUserBinaryRecordFile (FString const &Key, EAccelByteFileType ContentType, FString const &FileLocation, THandler< FAccelByteModelsUserBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Update current user's binary record to point to an uploaded file. | |
| FAccelByteTaskWPtr | UpdateUserBinaryRecordMetadata (FString const &Key, bool bIsPublic, THandler< FAccelByteModelsUserBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Update current user's binary record's metadata in namespace-level. | |
| FAccelByteTaskWPtr | DeleteUserBinaryRecord (FString const &Key, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Delete current user's binary record under the given key in namespace-level. | |
| FAccelByteTaskWPtr | RequestUserBinaryRecordPresignedUrl (FString const &Key, FString const &FileType, THandler< FAccelByteModelsBinaryInfo > const &OnSuccess, FErrorHandler const &OnError) |
| Request a presigned url to upload current user's binary record file. | |
| FAccelByteTaskWPtr | RequestUserBinaryRecordPresignedUrl (FString const &Key, EAccelByteFileType FileType, THandler< FAccelByteModelsBinaryInfo > const &OnSuccess, FErrorHandler const &OnError) |
| Request a presigned url to upload current user's binary record file. | |
| FAccelByteTaskWPtr | GetGameBinaryRecord (FString const &Key, THandler< FAccelByteModelsGameBinaryRecord > const &OnSuccess, FErrorHandler const &OnError) |
| Get a game binary record by its key. | |
| FAccelByteTaskWPtr | BulkGetGameBinaryRecords (TArray< FString > const &Keys, THandler< FAccelByteModelsListGameBinaryRecords > const &OnSuccess, FErrorHandler const &OnError) |
| Bulk get game binary records by their keys. | |
| FAccelByteTaskWPtr | BulkQueryGameBinaryRecords (FString const &Query, THandler< FAccelByteModelsPaginatedGameBinaryRecords > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Bulk query game binary records. | |
| Public Member Functions inherited from AccelByte::FApiBase | |
| FApiBase (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient) | |
| FApiBase (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| void | SetApiClient (TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient) |
Additional Inherited Members | |
| Protected Member Functions inherited from AccelByte::FApiBase | |
| template<typename T> | |
| bool | ValidateAccelByteId (FString const &Id, EAccelByteIdHypensRule HypenRule, FString const &ErrorMessage, T const &OnError) |
| Protected Attributes inherited from AccelByte::FApiBase | |
| TSharedRef< Credentials const, ESPMode::ThreadSafe > | CredentialsRef |
| Settings const & | SettingsRef |
| FHttpRetrySchedulerBase & | HttpRef |
| FHttpClient | HttpClient |
| FAccelBytePlatformPtr | AccelBytePlatformPtr |
CloudSave API for storing binaries.
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkGetCurrentUserBinaryRecords | ( | const TArray< FString > & | Keys, |
| THandler< FAccelByteModelsListUserBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Bulk get current user's binary records by their keys.
| Keys | List of keys of the binary records. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsListUserBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkGetGameBinaryRecords | ( | TArray< FString > const & | Keys, |
| THandler< FAccelByteModelsListGameBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Bulk get game binary records by their keys.
| Keys | List of keys of the binary record. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsListGameBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkGetPublicUserBinaryRecords | ( | const TArray< FString > & | Keys, |
| FString const & | UserId, | ||
| THandler< FAccelByteModelsListUserBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Bulk get multiple public binary records from a single user by their keys.
| Keys | List of key(s) of the binary record. |
| UserId | UserId of the binary record owner. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsListUserBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkGetPublicUserBinaryRecords | ( | FString const & | Key, |
| const TArray< FString > & | UserIds, | ||
| THandler< FAccelByteModelsListUserBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Bulk get public binary records with the same key from multiple users.
| Key | Key of the binary record. |
| UserIds | UserId list of the binary record owner(s). |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsListUserBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkQueryCurrentUserBinaryRecords | ( | FString const & | Query, |
| THandler< FAccelByteModelsPaginatedUserBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Bulk query current user's binary records.
| Query | String that will be used to query the user's keys. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the result. Default value is 0. |
| Limit | The limit of the result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkQueryGameBinaryRecords | ( | FString const & | Query, |
| THandler< FAccelByteModelsPaginatedGameBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Bulk query game binary records.
| Query | String that will be used to query the game's binary record keys. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedGameBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the result. Default value is 0. |
| Limit | The limit of the result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::BulkQueryPublicUserBinaryRecords | ( | FString const & | UserId, |
| THandler< FAccelByteModelsPaginatedUserBinaryRecords > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Bulk query all of a user's public binary records.
| UserId | UserId of the binary record owner. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserBinaryRecords&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the result. Default value is 0. |
| Limit | The limit of the result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::DeleteUserBinaryRecord | ( | FString const & | Key, |
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Delete current user's binary record under the given key in namespace-level.
| Key | Key of the binary record. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::GetCurrentUserBinaryRecord | ( | FString const & | Key, |
| THandler< FAccelByteModelsUserBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get current user's binary record by its key in namespace-level.
| Key | Key of the binary record. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsUserBinaryRecord&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::GetGameBinaryRecord | ( | FString const & | Key, |
| THandler< FAccelByteModelsGameBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get a game binary record by its key.
| Key | Key of the binary record. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsGameBinaryRecord&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::GetPublicUserBinaryRecord | ( | FString const & | Key, |
| FString const & | UserId, | ||
| THandler< FAccelByteModelsUserBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get a user's public binary record by its key and the owner's UserId in namespace-level.
| Key | Key of the binary record. |
| UserId | UserId of the binary record owner. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsUserBinaryRecord&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::RequestUserBinaryRecordPresignedUrl | ( | FString const & | Key, |
| EAccelByteFileType | FileType, | ||
| THandler< FAccelByteModelsBinaryInfo > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Request a presigned url to upload current user's binary record file.
| Key | Key of the binary record. |
| FileType | File type of the binary (supported file types are jpeg, jpg, png, bmp, gif, mp3, webp, and bin). |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::RequestUserBinaryRecordPresignedUrl | ( | FString const & | Key, |
| FString const & | FileType, | ||
| THandler< FAccelByteModelsBinaryInfo > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Request a presigned url to upload current user's binary record file.
| Key | Key of the binary record. |
| FileType | File type of the binary (supported file types are jpeg, jpg, png, bmp, gif, mp3, webp, and bin). |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::SaveUserBinaryRecord | ( | FString const & | Key, |
| EAccelByteFileType | FileType, | ||
| bool | bIsPublic, | ||
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Save a namespace-level user binary. If the binary doesn't exist, it will create the binary save, if already exists, it will append to the existing one.
| Key | Key of the binary record. |
| FileType | File type of the binary (supported file types are jpeg, jpg, png, bmp, gif, mp3, webp, and bin). |
| bIsPublic | Whether to save the binary as a public or private record. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::SaveUserBinaryRecord | ( | FString const & | Key, |
| FString const & | FileType, | ||
| bool | bIsPublic, | ||
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Save a namespace-level user binary. If the binary doesn't exist, it will create the binary save, if already exists, it will append to the existing one.
| Key | Key of the binary record. |
| FileType | File type of the binary (supported file types are jpeg, jpg, png, bmp, gif, mp3, webp, and bin). |
| bIsPublic | Whether to save the binary as a public or private record. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::UpdateUserBinaryRecordFile | ( | FString const & | Key, |
| EAccelByteFileType | ContentType, | ||
| FString const & | FileLocation, | ||
| THandler< FAccelByteModelsUserBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update current user's binary record to point to an uploaded file.
| Key | Key of the binary record. |
| ContentType | The specific type of the binary record created. |
| FileLocation | Location of the uploaded binary file. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsUserBinaryRecord&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::UpdateUserBinaryRecordFile | ( | FString const & | Key, |
| FString const & | FileType, | ||
| FString const & | FileLocation, | ||
| THandler< FAccelByteModelsUserBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update current user's binary record to point to an uploaded file.
| Key | Key of the binary record. |
| FileType | File type of the uploaded binary (supported file types are jpeg, jpg, png, bmp, gif, mp3, webp, and bin). |
| FileLocation | Location of the uploaded binary file. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsUserBinaryRecord&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::BinaryCloudSave::UpdateUserBinaryRecordMetadata | ( | FString const & | Key, |
| bool | bIsPublic, | ||
| THandler< FAccelByteModelsUserBinaryRecord > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update current user's binary record's metadata in namespace-level.
| Key | Key of the binary record. |
| IsPublic | Whether to update the binary into a public or private record. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsUserBinaryRecord&. |
| OnError | This will be called when the operation failed. |