Public Member Functions | |
| FAccelByteApiUtilities (TSharedRef< BaseCredentials, ESPMode::ThreadSafe > const &InCredentialsRef, TSharedRef< BaseSettings, ESPMode::ThreadSafe > const &InSettingsRef, TSharedRef< FHttpRetrySchedulerBase, ESPMode::ThreadSafe > const &InHttpRef, TWeakPtr< FAccelByteTimeManager, ESPMode::ThreadSafe > const &InTimeManager) | |
| void | GetPublicIP (THandler< FAccelByteModelsPubIp > const &OnSuccess, FErrorHandler const &OnError) const |
| Get Public IP using api.ipify.org. | |
| void | DownloadFrom (FString const &Url, FHttpRequestProgressDelegate const &OnProgress, THandler< TArray< uint8 > > const &OnDownloaded, FErrorHandler const &OnError) |
| Download acontent from specified URL with several callback functions including OnProgress, OnDownloaded, and OnError. | |
| void | UploadTo (FString const &Url, TArray< uint8 > const &DataUpload, FHttpRequestProgressDelegate const &OnProgress, FVoidHandler const &OnSuccess, FErrorHandler const &OnError, FString const &ContentType=TEXT("application/octet-stream")) |
| Upload a content using specified URL with several callback functions including OnProgress, OnSuccess, and OnError. | |
| EAccelByteCurrentServerManagementType | GetCurrentServerManagementType () const |
| To be called from game server to decide the type of the game server management. | |
| const FString | GenerateTOTP (const FString &SecretKey, int CodeLength=6, int TimeStep=30) |
| Generate TOTP string. | |
| bool | ValidateTOTP (const FString &ServerSecretKey, const FString &TOTP, const FString &UserId) |
| Validate a TOTP against a User. | |
| void AccelByte::FAccelByteApiUtilities::DownloadFrom | ( | FString const & | Url, |
| FHttpRequestProgressDelegate const & | OnProgress, | ||
| THandler< TArray< uint8 > > const & | OnDownloaded, | ||
| FErrorHandler const & | OnError ) |
Download acontent from specified URL with several callback functions including OnProgress, OnDownloaded, and OnError.
| Url | Specified URL to download the content. |
| OnProgress | Callback function for on progress delegate. |
| OnDownloaded | Callback function for successful download delegate. |
| OnError | Callback function for error delegate. |
| const FString AccelByte::FAccelByteApiUtilities::GenerateTOTP | ( | const FString & | SecretKey, |
| int | CodeLength = 6, | ||
| int | TimeStep = 30 ) |
Generate TOTP string.
| SecretKey | |
| CodeLength | |
| TimeStep |
| void AccelByte::FAccelByteApiUtilities::GetPublicIP | ( | THandler< FAccelByteModelsPubIp > const & | OnSuccess, |
| FErrorHandler const & | OnError ) const |
Get Public IP using api.ipify.org.
| OnSuccess | Callback function for successful delegate. |
| OnError | Callback function for error delegate. |
| void AccelByte::FAccelByteApiUtilities::UploadTo | ( | FString const & | Url, |
| TArray< uint8 > const & | DataUpload, | ||
| FHttpRequestProgressDelegate const & | OnProgress, | ||
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| FString const & | ContentType = TEXT("application/octet-stream") ) |
Upload a content using specified URL with several callback functions including OnProgress, OnSuccess, and OnError.
| Url | Specified URL to upload the content. |
| DataUpload | Content to upload. |
| OnProgress | Callback function for on progress delegate. |
| OnSuccess | Callback function for successful upload delegate. |
| OnError | Callback function for error delegate. |
| ContentType | Specified content-type header which determine the type of uploaded content (default: application/octet-stream) |
| bool AccelByte::FAccelByteApiUtilities::ValidateTOTP | ( | const FString & | ServerSecretKey, |
| const FString & | TOTP, | ||
| const FString & | UserId ) |
Validate a TOTP against a User.
| ServerSecretKey | Secret key of the server. |
| TOTP | TOTP to validate. |
| UserId | UserId to validate. |