Loading...
Searching...
No Matches
AccelByte::Api::GameProfile Class Reference

GameProfile API to manage user's in-game profiles (character). More...

#include <AccelByteGameProfileApi.h>

Inheritance diagram for AccelByte::Api::GameProfile:

Public Member Functions

 GameProfile (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr)
 GameProfile (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform)
FAccelByteTaskWPtr BatchGetPublicGameProfiles (TArray< FString > const &UserIds, THandler< TArray< FAccelByteModelsPublicGameProfile > > const &OnSuccess, FErrorHandler const &OnError)
 Get public game profiles from the specified user id(s).
FAccelByteTaskWPtr GetAllGameProfiles (THandler< TArray< FAccelByteModelsGameProfile > > const &OnSuccess, FErrorHandler const &OnError)
 Get all user's game profiles.
FAccelByteTaskWPtr CreateGameProfile (FAccelByteModelsGameProfileRequest const &GameProfileRequest, THandler< FAccelByteModelsGameProfile > const &OnSuccess, FErrorHandler const &OnError)
 Create a game profile.
FAccelByteTaskWPtr GetGameProfile (FString const &ProfileId, THandler< FAccelByteModelsGameProfile > const &OnSuccess, FErrorHandler const &OnError)
 Get a specific game profile.
FAccelByteTaskWPtr UpdateGameProfile (FString const &ProfileId, FAccelByteModelsGameProfileRequest const &GameProfileRequest, THandler< FAccelByteModelsGameProfile > const &OnSuccess, FErrorHandler const &OnError)
 Update a specific game profile.
FAccelByteTaskWPtr DeleteGameProfile (FString const &ProfileId, FVoidHandler const &OnSuccess, FErrorHandler const &OnError)
 Delete a specific game profile.
FAccelByteTaskWPtr GetGameProfileAttribute (FString const &ProfileId, FString const &AttributeName, THandler< FAccelByteModelsGameProfileAttribute > const &OnSuccess, FErrorHandler const &OnError)
 Get an attribute value from a game profile.
FAccelByteTaskWPtr UpdateGameProfileAttribute (FString const &ProfileId, FAccelByteModelsGameProfileAttribute const &Attribute, THandler< FAccelByteModelsGameProfile > const &OnSuccess, FErrorHandler const &OnError)
 Update an attribute from a game profile.
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
FHttpRetrySchedulerBaseHttpRef
FHttpClient HttpClient
FAccelBytePlatformPtr AccelBytePlatformPtr

Detailed Description

GameProfile API to manage user's in-game profiles (character).

Member Function Documentation

◆ BatchGetPublicGameProfiles()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::BatchGetPublicGameProfiles ( TArray< FString > const & UserIds,
THandler< TArray< FAccelByteModelsPublicGameProfile > > const & OnSuccess,
FErrorHandler const & OnError )

Get public game profiles from the specified user id(s).

Parameters
UserIdsSpecify user id(s) those will be requested. One UserId is required.
OnSuccessThis will be called when the operation succeeded. The result is an array of FAccelByteModelsPublicGameProfile.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ CreateGameProfile()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::CreateGameProfile ( FAccelByteModelsGameProfileRequest const & GameProfileRequest,
THandler< FAccelByteModelsGameProfile > const & OnSuccess,
FErrorHandler const & OnError )

Create a game profile.

Parameters
GameProfileRequestGame profile that will be created.
OnSuccessThis will be called when the operation succeeded. The result is a FAccelByteModelsGameProfile that created.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ DeleteGameProfile()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::DeleteGameProfile ( FString const & ProfileId,
FVoidHandler const & OnSuccess,
FErrorHandler const & OnError )

Delete a specific game profile.

Parameters
ProfileIdSpecified game profile ID.
OnSuccessThis will be called when the operation succeeded.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ GetAllGameProfiles()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::GetAllGameProfiles ( THandler< TArray< FAccelByteModelsGameProfile > > const & OnSuccess,
FErrorHandler const & OnError )

Get all user's game profiles.

Parameters
OnSuccessThis will be called when the operation succeeded. The result is an array FAccelByteModelsGameProfile.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ GetGameProfile()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::GetGameProfile ( FString const & ProfileId,
THandler< FAccelByteModelsGameProfile > const & OnSuccess,
FErrorHandler const & OnError )

Get a specific game profile.

Parameters
ProfileIdSpecified game profile ID.
OnSuccessThis will be called when the operation succeeded. The result is a FAccelByteModelsGameProfile that requested.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ GetGameProfileAttribute()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::GetGameProfileAttribute ( FString const & ProfileId,
FString const & AttributeName,
THandler< FAccelByteModelsGameProfileAttribute > const & OnSuccess,
FErrorHandler const & OnError )

Get an attribute value from a game profile.

Parameters
ProfileIdSpecified game profile ID.
AttributeNameSpecified attribute name.
OnSuccessThis will be called when the operation succeeded. The result is an attribute name and value as string.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ UpdateGameProfile()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::UpdateGameProfile ( FString const & ProfileId,
FAccelByteModelsGameProfileRequest const & GameProfileRequest,
THandler< FAccelByteModelsGameProfile > const & OnSuccess,
FErrorHandler const & OnError )

Update a specific game profile.

Parameters
ProfileIdSpecified game profile ID.
GameProfileRequestGame profile that will be updated.
OnSuccessThis will be called when the operation succeeded. The result is a FAccelByteModelsGameProfile that updated.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.

◆ UpdateGameProfileAttribute()

FAccelByteTaskWPtr AccelByte::Api::GameProfile::UpdateGameProfileAttribute ( FString const & ProfileId,
FAccelByteModelsGameProfileAttribute const & Attribute,
THandler< FAccelByteModelsGameProfile > const & OnSuccess,
FErrorHandler const & OnError )

Update an attribute from a game profile.

Parameters
ProfileIdSpecified game profile ID.
AttributeConsist of attribute name and value that will be updated.
OnSuccessThis will be called when the operation succeeded. The result is a FAccelByteModelsGameProfile with an updated attribute.
OnErrorThis will be called when the operation failed.
Returns
AccelByteTask object to track and cancel the ongoing API operation.