Interface for interacting with the AccelByte challenge service. More...
#include <AccelByteChallengeApi.h>
Public Member Functions | |
| Challenge (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr) | |
| Challenge (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| FAccelByteTaskWPtr | GetChallenges (THandler< FAccelByteModelsGetChallengesResponse > const &OnSuccess, FErrorHandler const &OnError, EAccelByteModelsChallengeSortBy SortBy=EAccelByteModelsChallengeSortBy::UPDATED_AT_DESC, EAccelByteModelsChallengeStatus Status=EAccelByteModelsChallengeStatus::NONE, uint64 Offset=0, uint64 Limit=20, FString Keyword=TEXT(""), TArray< FString > const &Tags={}) |
| Send a request to get all challenges. | |
| FAccelByteTaskWPtr | GetPreviousChallengeProgresses (FString const &ChallengeCode, int32 Index, THandler< FAccelByteModelsChallengeProgressResponse > const &OnSuccess, FErrorHandler const &OnError, FString const &GoalCode=TEXT(""), uint64 Offset=0, uint64 Limit=20, TArray< FString > const &Tags={}) |
| Send a request to get previous challenge progresses. | |
| FAccelByteTaskWPtr | GetChallengeProgress (FString const &ChallengeCode, FString const &GoalCode, THandler< FAccelByteModelsChallengeProgressResponse > const &OnSuccess, FErrorHandler const &OnError, uint64 Offset=0, uint64 Limit=20, TArray< FString > const &Tags={}) |
| Send a request to get current progress for a specific challenge. | |
| FAccelByteTaskWPtr | GetChallengeProgress (FString const &ChallengeCode, THandler< FAccelByteModelsChallengeProgressResponse > const &OnSuccess, FErrorHandler const &OnError, uint64 Offset=0, uint64 Limit=20, FString const &GoalCode=TEXT(""), TArray< FString > const &Tags={}) |
| Send a request to get current progress for a specific challenge. | |
| FAccelByteTaskWPtr | GetRewards (THandler< FAccelByteModelsChallengeGetRewardStatusResponse > const &OnSuccess, FErrorHandler const &OnError, EAccelByteModelsChallengeRewardStatus Status=EAccelByteModelsChallengeRewardStatus::NONE, EAccelByteModelsChallengeSortBy SortBy=EAccelByteModelsChallengeSortBy::UPDATED_AT_DESC, uint64 Offset=0, uint64 Limit=20) |
| Send a request to get status of all challenge rewards. | |
| FAccelByteTaskWPtr | ClaimReward (FAccelByteModelsChallengeRewardClaimRequest const &Request, THandler< TArray< FAccelByteModelsChallengeReward > > const &OnSuccess, FErrorHandler const &OnError) |
| Send a request to claim a single reward. | |
| FAccelByteTaskWPtr | EvaluateChallengeProgress (FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Send a request to attempt to evaluate current progress toward all active challenges. | |
| FAccelByteTaskWPtr | EvaluateChallengeProgress (FAccelByteModelsChallengeEvaluateProgressOptionalParameter const &OptionalParameter, FVoidHandler const &OnSuccess, FErrorHandler const &OnError) |
| Send a request to attempt to evaluate current progress toward all active challenges. | |
| FAccelByteTaskWPtr | ListSchedules (FString ChallengeCode, THandler< FAccelByteModelsChallengeListSchedulesResponse > const &OnSuccess, FErrorHandler const &OnError, FDateTime const &DateTime=FDateTime::MinValue(), uint64 Offset=0, uint64 Limit=20) |
| Send a request to query the List schedules of given challenge. | |
| FAccelByteTaskWPtr | ListScheduleByGoal (FString ChallengeCode, FString GoalCode, THandler< FAccelByteModelsChallengeListScheduleByGoalResponse > const &OnSuccess, FErrorHandler const &OnError, uint64 Offset=0, uint64 Limit=20) |
| Send a request to query the List schedules of given goal in a challenge. | |
| 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 |
Interface for interacting with the AccelByte challenge service.
| FAccelByteTaskWPtr AccelByte::Api::Challenge::ClaimReward | ( | FAccelByteModelsChallengeRewardClaimRequest const & | Request, |
| THandler< TArray< FAccelByteModelsChallengeReward > > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Send a request to claim a single reward.
| Request | Structure containing IDs of rewards to claim |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::EvaluateChallengeProgress | ( | FAccelByteModelsChallengeEvaluateProgressOptionalParameter const & | OptionalParameter, |
| FVoidHandler const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Send a request to attempt to evaluate current progress toward all active challenges.
| OptionalParameter | Struct containing optional parameters to specify the evaluation |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::EvaluateChallengeProgress | ( | FVoidHandler const & | OnSuccess, |
| FErrorHandler const & | OnError ) |
Send a request to attempt to evaluate current progress toward all active challenges.
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::GetChallengeProgress | ( | FString const & | ChallengeCode, |
| FString const & | GoalCode, | ||
| THandler< FAccelByteModelsChallengeProgressResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20, | ||
| TArray< FString > const & | Tags = {} ) |
Send a request to get current progress for a specific challenge.
| ChallengeCode | String code for the challenge to check progress for |
| GoalCode | String code for the specific challenge goal to get progress for |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| Offset | Number of goals to skip when returning goal progress list, defaults to 0 |
| Limit | Number of goals to include when returning goal progress list, defaults to 20 |
| Tags | Array of tag strings used to filter resulting challenge progress list |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::GetChallengeProgress | ( | FString const & | ChallengeCode, |
| THandler< FAccelByteModelsChallengeProgressResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20, | ||
| FString const & | GoalCode = TEXT(""), | ||
| TArray< FString > const & | Tags = {} ) |
Send a request to get current progress for a specific challenge.
| ChallengeCode | String code for the challenge to check progress for |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| Offset | Number of goals to skip when returning goal progress list, defaults to 0 |
| Limit | Number of goals to include when returning goal progress list, defaults to 20 |
| GoalCode | String code for the specific challenge goal to get progress for |
| Tags | Array of tag strings used to filter resulting challenge progress list |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::GetChallenges | ( | THandler< FAccelByteModelsGetChallengesResponse > const & | OnSuccess, |
| FErrorHandler const & | OnError, | ||
| EAccelByteModelsChallengeSortBy | SortBy = EAccelByteModelsChallengeSortBy::UPDATED_AT_DESC, | ||
| EAccelByteModelsChallengeStatus | Status = EAccelByteModelsChallengeStatus::NONE, | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20, | ||
| FString | Keyword = TEXT(""), | ||
| TArray< FString > const & | Tags = {} ) |
Send a request to get all challenges.
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| SortBy | Determines the returned sort order of the challenges, defaults to EAccelByteModelsChallengeSortBy::UPDATED_AT_DESC |
| Status | Determines how the returned challenge list should be filtered, defaults to EAccelByteModelsChallengeStatus::NONE |
| Offset | Number of challenges to skip when returning the challenge list, defaults to 0 |
| Limit | Number of challenges that should be included in the challenge list, defaults to 20 |
| Keyword | String challenge code for the specific challenge list |
| Tags | Array of tag strings used to filter resulting challenge list |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::GetPreviousChallengeProgresses | ( | FString const & | ChallengeCode, |
| int32 | Index, | ||
| THandler< FAccelByteModelsChallengeProgressResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| FString const & | GoalCode = TEXT(""), | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20, | ||
| TArray< FString > const & | Tags = {} ) |
Send a request to get previous challenge progresses.
| ChallengeCode | String code for the challenge to check progress for |
| Index | A positive integer indicating the index of the rotation. The rotations are sorted by their start time in descending order. A value of 0 refers to the current or most recent active rotation. Incrementing the value allows you to reference previous rotations. |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| GoalCode | String code for the specific challenge goal to get progress for |
| Offset | Number of goals to skip when returning goal progress list, defaults to 0 |
| Limit | Number of goals to include when returning goal progress list, defaults to 20 |
| Tags | Array of tag strings used to filter resulting challenge progress list |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::GetRewards | ( | THandler< FAccelByteModelsChallengeGetRewardStatusResponse > const & | OnSuccess, |
| FErrorHandler const & | OnError, | ||
| EAccelByteModelsChallengeRewardStatus | Status = EAccelByteModelsChallengeRewardStatus::NONE, | ||
| EAccelByteModelsChallengeSortBy | SortBy = EAccelByteModelsChallengeSortBy::UPDATED_AT_DESC, | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20 ) |
Send a request to get status of all challenge rewards.
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| Status | Determines what specific rewards should be included in the response, defaults to EAccelByteModelsChallengeRewardStatus::NONE to show all |
| SortBy | Determines the order in which the rewards in the response are returned |
| Offset | Number of rewards to skip when returning reward list, defaults to 0 |
| Limit | Number of rewards to include when returning reward list, defaults to 20 |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::ListScheduleByGoal | ( | FString | ChallengeCode, |
| FString | GoalCode, | ||
| THandler< FAccelByteModelsChallengeListScheduleByGoalResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20 ) |
Send a request to query the List schedules of given goal in a challenge.
| ChallengeCode | String code for the challenge to check the schedules for |
| GoalCode | String code for the specific challenge goal to check the schedules for |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| Offset | Number of rewards to skip when returning reward list, defaults to 0 |
| Limit | Number of rewards to include when returning reward list, defaults to 20 |
| FAccelByteTaskWPtr AccelByte::Api::Challenge::ListSchedules | ( | FString | ChallengeCode, |
| THandler< FAccelByteModelsChallengeListSchedulesResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| FDateTime const & | DateTime = FDateTime::MinValue(), | ||
| uint64 | Offset = 0, | ||
| uint64 | Limit = 20 ) |
Send a request to query the List schedules of given challenge.
| ChallengeCode | String code for the challenge to check the schedules for |
| OnSuccess | Delegate executed when request succeeds |
| OnError | Delegate executed when request fails |
| DateTime | Optional parameter to query schedules prior to specific date time |
| Offset | Number of rewards to skip when returning reward list, defaults to 0 |
| Limit | Number of rewards to include when returning reward list, defaults to 20 |