Provide APIs to access Achievement service. More...
#include <AccelByteAchievementApi.h>
Public Member Functions | |
| Achievement (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr) | |
| Achievement (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| FAccelByteTaskWPtr | QueryAchievements (FString const &Language, EAccelByteAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedPublicAchievement > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20, FString const &TagQuery=TEXT(""), bool bGlobal=false) |
| Query all achievements in the related namespace. | |
| FAccelByteTaskWPtr | GetAchievement (FString const &AchievementCode, THandler< FAccelByteModelsMultiLanguageAchievement > const &OnSuccess, FErrorHandler const &OnError) |
| Get an specific achievement information. | |
| FAccelByteTaskWPtr | QueryUserAchievements (EAccelByteAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedUserAchievement > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20, bool PreferUnlocked=true, FString const &TagQuery=TEXT("")) |
| [Deprecated] Query user's achievements. Include achieved and in-progress. | |
| FAccelByteTaskWPtr | QueryUserAchievements (EAccelByteGlobalAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedUserAchievement > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20, bool PreferUnlocked=true, FString const &TagQuery=TEXT("")) |
| Query user's achievements. Include achieved and in-progress. | |
| FAccelByteTaskWPtr | QueryUserAchievementsByUserId (FString const &UserId, EAccelByteAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedUserAchievement > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20, bool PreferUnlocked=true, FString const &TagQuery=TEXT("")) |
| Query other user's achievements. Include achieved and in-progress. | |
| FAccelByteTaskWPtr | UnlockAchievement (FString const &AchievementCode, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Unlock specific achievement. | |
| FAccelByteTaskWPtr | BulkUnlockAchievement (FAccelByteModelsAchievementBulkUnlockRequest const &AchievementsToUnlock, THandler< TArray< FAccelByteModelsAchievementBulkUnlockRespone > > const &UnlockResponses, FErrorHandler const &OnGeneralError) |
| Unlock multiple achievement. | |
| FAccelByteTaskWPtr | QueryGlobalAchievements (FString const &AchievementCode, EAccelByteGlobalAchievementStatus const &AchievementStatus, EAccelByteGlobalAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedUserGlobalAchievement > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20, FString const &TagQuery=TEXT("")) |
| Get the progress list of global achievements. Include achieved and in-progress. | |
| FAccelByteTaskWPtr | QueryGlobalAchievementContributors (FString const &AchievementCode, EAccelByteGlobalAchievementContributorsSortBy const &SortBy, THandler< FAccelByteModelsPaginatedGlobalAchievementContributors > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Get the list of contributors for a global achievement. | |
| FAccelByteTaskWPtr | QueryGlobalAchievementUserContributed (FString const &AchievementCode, EAccelByteGlobalAchievementContributorsSortBy const &SortBy, THandler< FAccelByteModelsPaginatedGlobalAchievementUserContributed > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Get the list of global achievements that have been contributed by the user. | |
| FAccelByteTaskWPtr | ClaimGlobalAchievements (FString const &AchievementCode, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Claim specific global achievement. | |
| FAccelByteTaskWPtr | GetTags (FString const &Name, EAccelByteAchievementListSortBy const &SortBy, THandler< FAccelByteModelsPaginatedPublicTag > const &OnSuccess, FErrorHandler const &OnError, int32 const &Offset=0, int32 const &Limit=20) |
| Get available public achievement tag. | |
| 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 |
Provide APIs to access Achievement service.
| FAccelByteTaskWPtr AccelByte::Api::Achievement::BulkUnlockAchievement | ( | FAccelByteModelsAchievementBulkUnlockRequest const & | AchievementsToUnlock, |
| THandler< TArray< FAccelByteModelsAchievementBulkUnlockRespone > > const & | UnlockResponses, | ||
| FErrorHandler const & | OnGeneralError ) |
Unlock multiple achievement.
| AchievementsToUnlock | Request of achievement that needs to be unlocked. |
| UnlockResponses | This will be called when the operation completed. In a form of array for each achievement that was requested. |
| OnGeneralError | This will be called when the entire operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::ClaimGlobalAchievements | ( | FString const & | AchievementCode, |
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Claim specific global achievement.
| AchievementCode | The global achievement code which will be claimed. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::GetAchievement | ( | FString const & | AchievementCode, |
| THandler< FAccelByteModelsMultiLanguageAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get an specific achievement information.
| AchievementCode | The code of the expected achievement. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsMultiLanguageAchievement&. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::GetTags | ( | FString const & | Name, |
| EAccelByteAchievementListSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedPublicTag > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Get available public achievement tag.
| Name | The name of the public tag. |
| SortBy | Sorting method for the public tag result. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryAchievements | ( | FString const & | Language, |
| EAccelByteAchievementListSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedPublicAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20, | ||
| FString const & | TagQuery = TEXT(""), | ||
| bool | bGlobal = false ) |
Query all achievements in the related namespace.
| Language | The language to display the appropriate achievement's name and description. If it is empty, it will use its default language. If the achievement does not have the expected language, it will use its default language. |
| SortBy | Sorting method for the achievements result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedPublicAchievement&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| TagQuery | A query expression consists of tags to query the achievement from. |
| bGlobal | True if the configuration to display global achievements. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryGlobalAchievementContributors | ( | FString const & | AchievementCode, |
| EAccelByteGlobalAchievementContributorsSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedGlobalAchievementContributors > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Get the list of contributors for a global achievement.
| AchievementCode | The achievement code. |
| SortBy | Sorting method for the global achievements contributors result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedGlobalAchievementContributors&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryGlobalAchievements | ( | FString const & | AchievementCode, |
| EAccelByteGlobalAchievementStatus const & | AchievementStatus, | ||
| EAccelByteGlobalAchievementListSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedUserGlobalAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20, | ||
| FString const & | TagQuery = TEXT("") ) |
Get the progress list of global achievements. Include achieved and in-progress.
| AchievementCode | The achievement code. |
| AchievementStatus | The status to display the appropriate achievements. |
| SortBy | Sorting method for the global achievements result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserGlobalAchievement&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| TagQuery | A query expression consists of tags to query the achievement from. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryGlobalAchievementUserContributed | ( | FString const & | AchievementCode, |
| EAccelByteGlobalAchievementContributorsSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedGlobalAchievementUserContributed > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20 ) |
Get the list of global achievements that have been contributed by the user.
| AchievementCode | The achievement code. |
| SortBy | Sorting method for the global achievements contributors result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedGlobalAchievementUserContributed&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryUserAchievements | ( | EAccelByteAchievementListSortBy const & | SortBy, |
| THandler< FAccelByteModelsPaginatedUserAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20, | ||
| bool | PreferUnlocked = true, | ||
| FString const & | TagQuery = TEXT("") ) |
[Deprecated] Query user's achievements. Include achieved and in-progress.
| SortBy | Sorting method for the achievements result. Only support achieveAt, createdAt |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserAchievement&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| PreferUnlocked | True if the configuration to display unlocked achievements first active, the list order should display unlocked achievements first on top of locked achievements, and false otherwise. Default value is true. |
| TagQuery | A query expression consists of tags to query the achievement from |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryUserAchievements | ( | EAccelByteGlobalAchievementListSortBy const & | SortBy, |
| THandler< FAccelByteModelsPaginatedUserAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20, | ||
| bool | PreferUnlocked = true, | ||
| FString const & | TagQuery = TEXT("") ) |
Query user's achievements. Include achieved and in-progress.
| SortBy | Sorting method for the achievements result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserAchievement&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| PreferUnlocked | True if the configuration to display unlocked achievements first active, the list order should display unlocked achievements first on top of locked achievements, and false otherwise. Default value is true. |
| TagQuery | A query expression consists of tags to query the achievement from. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::QueryUserAchievementsByUserId | ( | FString const & | UserId, |
| EAccelByteAchievementListSortBy const & | SortBy, | ||
| THandler< FAccelByteModelsPaginatedUserAchievement > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| int32 const & | Offset = 0, | ||
| int32 const & | Limit = 20, | ||
| bool | PreferUnlocked = true, | ||
| FString const & | TagQuery = TEXT("") ) |
Query other user's achievements. Include achieved and in-progress.
| UserId | Target user id to retrieve achievement data from |
| SortBy | Sorting method for the achievements result. |
| OnSuccess | This will be called when the operation succeeded. The result is const FAccelByteModelsPaginatedUserAchievement&. |
| OnError | This will be called when the operation failed. |
| Offset | The offset of the achievements result. Default value is 0. |
| Limit | The limit of the achievements result. Default value is 20. |
| PreferUnlocked | True if the configuration to display unlocked achievements first active, the list order should display unlocked achievements first on top of locked achievements, and false otherwise. Default value is true. |
| TagQuery | A query expression consists of tags to query the achievement from. |
| FAccelByteTaskWPtr AccelByte::Api::Achievement::UnlockAchievement | ( | FString const & | AchievementCode, |
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Unlock specific achievement.
| AchievementCode | The achievement code which will be unlock. |
| OnSuccess | This will be called when the operation succeeded. |
| OnError | This will be called when the operation failed. |