Leaderboard API to obtain player's ranking in a namespace. More...
#include <AccelByteLeaderboardApi.h>
Public Member Functions | |
| Leaderboard (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr) | |
| Leaderboard (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| void | GetRankings (FString const &LeaderboardCode, EAccelByteLeaderboardTimeFrame const &TimeFrame, uint32 Offset, uint32 Limit, THandler< FAccelByteModelsLeaderboardRankingResult > const &OnSuccess, FErrorHandler const &OnError) |
| Get leaderboard rankings in a specified timeframe. | |
| void | GetUserRanking (FString const &UserId, FString const &LeaderboardCode, THandler< FAccelByteModelsUserRankingData > const &OnSuccess, FErrorHandler const &OnError) |
| Get user's ranking from leaderboard. | |
| void | GetLeaderboards (uint32 Offset, uint32 Limit, THandler< FAccelByteModelsPaginatedLeaderboardData > const &OnSuccess, FErrorHandler const &OnError) |
| List all leaderboards in the current namespace. | |
| void | GetRankingByCycle (FString const &LeaderboardCode, FString const &CycleId, uint32 Offset, uint32 Limit, THandler< FAccelByteModelsLeaderboardRankingResultV3 > const &OnSuccess, FErrorHandler const &OnError) |
| Get the list of user ranking data in a leaderboard in a specific cycle. | |
| void | GetLeaderboardsV3 (THandler< FAccelByteModelsPaginatedLeaderboardData > const &OnSuccess, FErrorHandler const &OnError, uint32 Limit=20, uint32 Offset=0) |
| List all leaderboards in the current namespace. | |
| void | GetLeaderboardV3 (FString const &LeaderboardCode, THandler< FAccelByteModelsBaseLeaderboardData > const &OnSuccess, FErrorHandler const &OnError) |
| Retrieve Leaderboard data for specific LeaderboardCode. | |
| void | GetRankingsV3 (FString const &LeaderboardCode, uint32 Offset, uint32 Limit, THandler< FAccelByteModelsLeaderboardRankingResultV3 > const &OnSuccess, FErrorHandler const &OnError) |
| Get the list of all time user ranking data in a leaderboard. | |
| void | GetRankingByCycleV3 (FString const &LeaderboardCode, FString const &CycleId, THandler< FAccelByteModelsLeaderboardRankingResultV3 > const &OnSuccess, FErrorHandler const &OnError, uint32 Limit=20, uint32 Offset=0) |
| Get the list of user ranking data in a leaderboard in a specific cycle. | |
| void | GetUserRankingV3 (FString const &UserId, FString const &LeaderboardCode, THandler< FAccelByteModelsUserRankingDataV3 > OnSuccess, FErrorHandler const &OnError) |
| Get all time and cycles user ranking data in a leaderboard. | |
| void | GetBulkUserRankingV3 (TArray< FString > const &UserIds, FString const &LeaderboardCode, THandler< FAccelByteModelsBulkUserRankingDataV3 > OnSuccess, FErrorHandler const &OnError) |
| Retrieve bulk user ranking data for all time periods and cycles in a leaderboard. | |
| 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 |
Leaderboard API to obtain player's ranking in a namespace.
| void AccelByte::Api::Leaderboard::GetBulkUserRankingV3 | ( | TArray< FString > const & | UserIds, |
| FString const & | LeaderboardCode, | ||
| THandler< FAccelByteModelsBulkUserRankingDataV3 > | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Retrieve bulk user ranking data for all time periods and cycles in a leaderboard.
| UserIds | List of UserIds. |
| LeaderboardCode | The leaderboard code |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsBulkUserRankingDataV3 |
| OnError | This will be called when the operation failed |
| void AccelByte::Api::Leaderboard::GetLeaderboards | ( | uint32 | Offset, |
| uint32 | Limit, | ||
| THandler< FAccelByteModelsPaginatedLeaderboardData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
List all leaderboards in the current namespace.
| Offset | The offset of leaderboard data result |
| Limit | The limit of leaderboard data result |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsPaginatedLeaderboardData |
| OnError | This will be called when the operation failed. |
| void AccelByte::Api::Leaderboard::GetLeaderboardsV3 | ( | THandler< FAccelByteModelsPaginatedLeaderboardData > const & | OnSuccess, |
| FErrorHandler const & | OnError, | ||
| uint32 | Limit = 20, | ||
| uint32 | Offset = 0 ) |
List all leaderboards in the current namespace.
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsPaginatedLeaderboardData |
| OnError | This will be called when the operation failed. |
| Limit | The limit of leaderboard data result |
| Offset | The offset of leaderboard data result |
| void AccelByte::Api::Leaderboard::GetLeaderboardV3 | ( | FString const & | LeaderboardCode, |
| THandler< FAccelByteModelsBaseLeaderboardData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Retrieve Leaderboard data for specific LeaderboardCode.
| LeaderboardCode | specified Leaderboard code to query |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsPaginatedLeaderboardData |
| OnError | This will be called when the operation failed. |
| void AccelByte::Api::Leaderboard::GetRankingByCycle | ( | FString const & | LeaderboardCode, |
| FString const & | CycleId, | ||
| uint32 | Offset, | ||
| uint32 | Limit, | ||
| THandler< FAccelByteModelsLeaderboardRankingResultV3 > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get the list of user ranking data in a leaderboard in a specific cycle.
| LeaderboardCode | |
| CycleId | |
| Offset | The offset of leaderboard data result |
| Limit | The limit of leaderboard data result |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsLeaderboardRankingResultV3 |
| OnError | This will be called when the operation failed |
| void AccelByte::Api::Leaderboard::GetRankingByCycleV3 | ( | FString const & | LeaderboardCode, |
| FString const & | CycleId, | ||
| THandler< FAccelByteModelsLeaderboardRankingResultV3 > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Limit = 20, | ||
| uint32 | Offset = 0 ) |
Get the list of user ranking data in a leaderboard in a specific cycle.
| LeaderboardCode | |
| CycleId | |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsLeaderboardRankingResultV3 |
| OnError | This will be called when the operation failed |
| Limit | The limit of leaderboard data result |
| Offset | The offset of leaderboard data result |
| void AccelByte::Api::Leaderboard::GetRankings | ( | FString const & | LeaderboardCode, |
| EAccelByteLeaderboardTimeFrame const & | TimeFrame, | ||
| uint32 | Offset, | ||
| uint32 | Limit, | ||
| THandler< FAccelByteModelsLeaderboardRankingResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get leaderboard rankings in a specified timeframe.
| LeaderboardCode | Specify leaderboard code to get from the leaderboard. |
| TimeFrame | Specify the time frame of leaderboard. |
| Offset | Starting index of leaderboard rank. First index is 0. |
| Limit | Ranking displayed for each page. |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsLeaderboardRankingResult. |
| OnError | This will be called when the operation failed. |
| void AccelByte::Api::Leaderboard::GetRankingsV3 | ( | FString const & | LeaderboardCode, |
| uint32 | Offset, | ||
| uint32 | Limit, | ||
| THandler< FAccelByteModelsLeaderboardRankingResultV3 > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get the list of all time user ranking data in a leaderboard.
| LeaderboardCode | The leaderboard code |
| Offset | The offset of leaderboard data result |
| Limit | The limit of leaderboard data result |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsLeaderboardRankingResultV3 |
| OnError | This will be called when the operation failed |
| void AccelByte::Api::Leaderboard::GetUserRanking | ( | FString const & | UserId, |
| FString const & | LeaderboardCode, | ||
| THandler< FAccelByteModelsUserRankingData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get user's ranking from leaderboard.
| UserId | Specify user ID to get from the leaderboard ranking list. |
| LeaderboardCode | Specify leaderboard code to get from the leaderboard. |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsUserRankingData. |
| OnError | This will be called when the operation failed. |
| void AccelByte::Api::Leaderboard::GetUserRankingV3 | ( | FString const & | UserId, |
| FString const & | LeaderboardCode, | ||
| THandler< FAccelByteModelsUserRankingDataV3 > | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get all time and cycles user ranking data in a leaderboard.
| UserId | |
| LeaderboardCode | |
| OnSuccess | This will be called when the operation succeeded. The result is an FAccelByteModelsUserRankingDataV3 |
| OnError | This will be called when the operation failed |