Skip to content

Common

Summary

MembersDescriptions
define DECLARE_RH_DELEGATE_BLOCKHelper for declaring FRH_DelegateBlock types.
enum ERHAPI_PlatformTypes_DEPRECATEDGeneric blueprint and native delegate used to report success or failure.
public DECLARE_DYNAMIC_DELEGATE_OneParam(FRH_GenericSuccessDynamicDelegate,bool,bSuccess)Generic blueprint friendly delegate used to report success or failure.
public DECLARE_DELEGATE_OneParam(FRH_GenericSuccessDelegate,bool)Generic native-only delegate used to report success or failure.
public DECLARE_DYNAMIC_DELEGATE_TwoParams(FRH_GenericSuccessWithErrorDynamicDelegate,bool,bSuccess,const FRH_ErrorInfo &,ErrorInfo)Generic blueprint friendly delegate used to report success or failure with error info.
public DECLARE_DELEGATE_TwoParams(FRH_GenericSuccessWithErrorDelegate,bool,const FRH_ErrorInfo &)Generic native-only delegate used to report success or failure.
public FORCEINLINE FRH_GenericSuccessWithErrorBlock RH_ConvertGenericSucessDelegateBlock(const FRH_GenericSuccessBlock & InDelegate)Generic blueprint and native delegate used to report success or failure.
public DECLARE_DYNAMIC_DELEGATE_OneParam(FRH_CustomEndpointDynamicDelegate,const FRH_CustomEndpointResponseWrapper &,CustomResponseWrapper)Dynamic delegate used for custom endpoint calls.
public DECLARE_DELEGATE_OneParam(FRH_CustomEndpointDelegate,const FRH_CustomEndpointResponseWrapper &)Native delegate used for custom endpoint calls.
public FORCEINLINE uint32 GetTypeHash(const FRH_PlayerPlatformId & PlatformId)Helper function to convert an FRH_PlayerPlatformId into a hash value.
public static bool RH_BreakApartURL(const FString & URL,const FString & BaseURL,FString & APIName,TArray< FString > & APIParams)Helper function to break a fully qualified URL into a base URL, API name, and an array of API parameters.
public FORCEINLINE uint32 GetTypeHash(const FRH_RemoteFileApiDirectory & Directory)Helper function to convert an FRH_RemoteFileApiDirectory into a hash value.
class FRH_AsyncTaskHelperBase helper class for asynchronous RallyHere tasks.
class FRH_SimpleQueryHelperTemplated helper class for asynchronously executing basic RallyHere API queries.
struct FRH_DelegateBlockTemplated helper class defining a native and blueprint friendly delegate as a single object.
struct FRH_ErrorInfoGeneric blueprint and native delegate used to report success or failure.
struct FRH_CustomEndpointRequestWrapperWrapper calls for custom endpoint requests.
struct FRH_CustomEndpointResponseWrapperWrapper calls for custom endpoint responses.
struct FRH_PlayerPlatformIdCommon structure for identifying players on any known platform.
struct FRH_RemoteFileApiDirectoryA tuple specifying the directory of a file in the remote file storage.

Members

define DECLARE_RH_DELEGATE_BLOCK

Helper for declaring FRH_DelegateBlock types.

enum ERHAPI_PlatformTypes_DEPRECATED

ValuesDescriptions
PT_UNKNOWNPlatform not specified
PT_UNUSED_1Unused platform [DEPRECATED]
PT_ANONRallyHere “anonymous” account platform
PT_UNUSED_3Unused platform [DEPRECATED]
PT_AMAZONAmazon Prime
PT_STEAMSteam
PT_UNUSED_6Unused platform [DEPRECATED]
PT_UNUSED_7Unused platform [DEPRECATED]
PT_UNUSED_8Unused platform [DEPRECATED]
PT_PSNSony PlayStation
PT_XBOX_LIVEMicrosoft Xbox
PT_BASICUsername and Password login
PT_FACEBOOKFacebook
PT_GOOGLEGoogle (not Google Play)
PT_UNUSED_14Unused platform [DEPRECATED]
PT_UNUSED_15Unused platform [DEPRECATED]
PT_TWITCHTwitch
PT_UNUSED_17Unused platform [DEPRECATED]
PT_UNUSED_18Unused platform [DEPRECATED]
PT_UNUSED_19Unused platform [DEPRECATED]
PT_UNUSED_20Unused platform [DEPRECATED]
PT_UNUSED_21Unused platform [DEPRECATED]
PT_NINTENDO_SWITCHNintendo Service Account ID (NSAID)
PT_UNUSED_23Unused platform [DEPRECATED]
PT_APPLEApple
PT_DISCORDDiscord
PT_NINTENDONintendo Legacy Account ID (NAID)
PT_UNUSED_27Unused platform [DEPRECATED]
PT_EPICEpic Online Services
PT_UNUSED_29Unused platform [DEPRECATED]
PT_SIMULMEDIASimulmedia Ad System
PT_UNUSED_31Unused platform [DEPRECATED]
PT_GOOGLE_PLAYGoogle Play
PT_NINTENDO_PPIDNintendo Pairwise Pseudonymous ID (PPID)
PT_MAX_COUNTTotal number of support platforms

Generic blueprint and native delegate used to report success or failure.

All known platforms (some no longer supported), deprecated

public DECLARE_DYNAMIC_DELEGATE_OneParam(FRH_GenericSuccessDynamicDelegate,bool,bSuccess)

Generic blueprint friendly delegate used to report success or failure.

public DECLARE_DELEGATE_OneParam(FRH_GenericSuccessDelegate,bool)

Generic native-only delegate used to report success or failure.

public DECLARE_DYNAMIC_DELEGATE_TwoParams(FRH_GenericSuccessWithErrorDynamicDelegate,bool,bSuccess,const FRH_ErrorInfo &,ErrorInfo)

Generic blueprint friendly delegate used to report success or failure with error info.

public DECLARE_DELEGATE_TwoParams(FRH_GenericSuccessWithErrorDelegate,bool,const FRH_ErrorInfo &)

Generic native-only delegate used to report success or failure.

public FORCEINLINE FRH_GenericSuccessWithErrorBlock RH_ConvertGenericSucessDelegateBlock(const FRH_GenericSuccessBlock & InDelegate)

Generic blueprint and native delegate used to report success or failure.

public DECLARE_DYNAMIC_DELEGATE_OneParam(FRH_CustomEndpointDynamicDelegate,const FRH_CustomEndpointResponseWrapper &,CustomResponseWrapper)

Dynamic delegate used for custom endpoint calls.

public DECLARE_DELEGATE_OneParam(FRH_CustomEndpointDelegate,const FRH_CustomEndpointResponseWrapper &)

Native delegate used for custom endpoint calls.

public FORCEINLINE uint32 GetTypeHash(const FRH_PlayerPlatformId & PlatformId)

Helper function to convert an FRH_PlayerPlatformId into a hash value.

Parameters

  • PlatformId The platform id to generate a hash for

Returns

Semi-unique hash value for the given platform id

public static bool RH_BreakApartURL(const FString & URL,const FString & BaseURL,FString & APIName,TArray< FString > & APIParams)

Helper function to break a fully qualified URL into a base URL, API name, and an array of API parameters.

Parameters

  • URL The fully qualified URL that we want to break apart

  • BaseURL The base URL of the specified fully qualified URL

  • APIName The name of the API the URL is hitting

  • APIParams The array of API parameters from the URL

Returns

Semi-unique hash value for the given platform id

public FORCEINLINE uint32 GetTypeHash(const FRH_RemoteFileApiDirectory & Directory)

Helper function to convert an FRH_RemoteFileApiDirectory into a hash value.

Parameters

  • Directory The directory to generate a hash for

Returns

Semi-unique hash value for the given directory

class FRH_AsyncTaskHelper

class FRH_AsyncTaskHelper
: public TSharedFromThis< FRH_AsyncTaskHelper >

Base helper class for asynchronous RallyHere tasks.

Summary

MembersDescriptions
public inline FORCEINLINE bool IsRunning() constReturns whether or not the task is currently executing.
public FString GetName() constAbstract function for fetching the name of the asynchronous task.
public inline FORCEINLINE int32 GetTaskPriority() constGets the TaskPriority.
public inline FORCEINLINE FTimespan GetDuration() constGets the Duration the task has been running for.
protected int32 TaskPriority
protected FDateTime StartedTime
protected FDateTime EndedTime
protected inline FRH_AsyncTaskHelper()Default constructor.
protected inline FRH_AsyncTaskHelper(int32 InPriority)Constructor with a priority for the task helper.
protected virtual ~FRH_AsyncTaskHelper() = defaultDefault destructor.
protected void ExecuteCallback(bool bSuccess) constAbstract function called when the asynchronous tasks completes regardless of success or failure.
protected inline virtual void Cleanup()Function called to do cleanup when the asynchronous tasks is about to be deleted.
protected inline void Started()Function called when the asynchronous task has started.
protected inline void Failed(const FString & FailureReason)Function called in the event that the asynchronous task has failed.
protected inline virtual void Cancel(const FString & CancelReason)Cancels the asynchronous task by failing it out.
protected inline void Completed(bool bSuccess)Called when the asynchronous task has completed.

Members

public inline FORCEINLINE bool IsRunning() const

Returns whether or not the task is currently executing.

public FString GetName() const

Abstract function for fetching the name of the asynchronous task.

public inline FORCEINLINE int32 GetTaskPriority() const

Gets the TaskPriority.

public inline FORCEINLINE FTimespan GetDuration() const

Gets the Duration the task has been running for.

protected int32 TaskPriority

protected FDateTime StartedTime

protected FDateTime EndedTime

protected inline FRH_AsyncTaskHelper()

Default constructor.

protected inline FRH_AsyncTaskHelper(int32 InPriority)

Constructor with a priority for the task helper.

protected virtual ~FRH_AsyncTaskHelper() = default

Default destructor.

protected void ExecuteCallback(bool bSuccess) const

Abstract function called when the asynchronous tasks completes regardless of success or failure.

protected inline virtual void Cleanup()

Function called to do cleanup when the asynchronous tasks is about to be deleted.

protected inline void Started()

Function called when the asynchronous task has started.

protected inline void Failed(const FString & FailureReason)

Function called in the event that the asynchronous task has failed.

protected inline virtual void Cancel(const FString & CancelReason)

Cancels the asynchronous task by failing it out.

Parameters

  • CancelReason Tracking string pushed to log for debugging purposes.

This is intended to be called from external code, not from within the task itself. It will just immediately fail, but this is virtual in case any locking etc needs to be done for safety.

protected inline void Completed(bool bSuccess)

Called when the asynchronous task has completed.

Parameters

  • bSuccess Whether or not the task completed successfully.

class FRH_SimpleQueryHelper

class FRH_SimpleQueryHelper
: public FRH_AsyncTaskHelper

Templated helper class for asynchronously executing basic RallyHere API queries.

Summary

MembersDescriptions
public inline FRH_SimpleQueryHelper(const typename BaseType::Delegate & InUpdateDelegate,const FRH_GenericSuccessWithErrorBlock & InCompleteDelegate,int32 InPriority)Constructor allowing for the specification of callback delegates.
public inline FRH_SimpleQueryHelper(const typename BaseType::Delegate & InUpdateDelegate,const FRH_GenericSuccessBlock & InCompleteDelegate,int32 InPriority)Constructor allowing for the specification of callback delegates.
public inline virtual void Start(TSharedRef< typename BaseType::API > API,const typename BaseType::Request & Request)Begins the task of asynchronously querying the API.
public inline void OnQueryComplete(const typename BaseType::Response & Resp)Called once the asynchronous query has returned a response.
public inline virtual FString GetName() constGets the templated name for this object.
public inline virtual void ExecuteCallback(bool bSuccess) constExecutes the generic delegate associated with this asynchronous task forwarding bSuccess.
protected BaseType::Delegate UpdateDelegateTemplated delegate to call with the API’s response if query successfully completes.
protected FRH_GenericSuccessWithErrorBlock DelegateGeneric completion delegate called regardless of success or failure.
protected FHttpRequestPtr HttpRequestThe HTTP request object used to query the API.
protected FRH_ErrorInfo ErrorInfoError Information

Members

public inline FRH_SimpleQueryHelper(const typename BaseType::Delegate & InUpdateDelegate,const FRH_GenericSuccessWithErrorBlock & InCompleteDelegate,int32 InPriority)

Constructor allowing for the specification of callback delegates.

Parameters

  • InUpdateDelegate Templated delegate to call with the API’s response if query successfully completes

  • InCompleteDelegate Generic completion delegate called regardless of success or failure

public inline FRH_SimpleQueryHelper(const typename BaseType::Delegate & InUpdateDelegate,const FRH_GenericSuccessBlock & InCompleteDelegate,int32 InPriority)

Constructor allowing for the specification of callback delegates.

Parameters

  • InUpdateDelegate Templated delegate to call with the API’s response if query successfully completes

  • InCompleteDelegate Generic completion delegate called regardless of success or failure

public inline virtual void Start(TSharedRef< typename BaseType::API > API,const typename BaseType::Request & Request)

Begins the task of asynchronously querying the API.

Parameters

  • API API target for the query (i.e. User, Session, Inventory, etc.)

  • Request Templated request data for the query

  • Priority The Priority of the call, lower is higher priority

public inline void OnQueryComplete(const typename BaseType::Response & Resp)

Called once the asynchronous query has returned a response.

Parameters

  • Resp Templated response data for the query

public inline virtual FString GetName() const

Gets the templated name for this object.

public inline virtual void ExecuteCallback(bool bSuccess) const

Executes the generic delegate associated with this asynchronous task forwarding bSuccess.

protected BaseType::Delegate UpdateDelegate

Templated delegate to call with the API’s response if query successfully completes.

protected FRH_GenericSuccessWithErrorBlock Delegate

Generic completion delegate called regardless of success or failure.

protected FHttpRequestPtr HttpRequest

The HTTP request object used to query the API.

protected FRH_ErrorInfo ErrorInfo

Error Information

struct FRH_DelegateBlock

Templated helper class defining a native and blueprint friendly delegate as a single object.

Summary

MembersDescriptions
public DelegateType DelegateNative-only version of the delegate.
public DynamicDelegateType DynDelegateBlueprint friendly version of the delegate.
public inline FRH_DelegateBlock()Default constructor leaving both delegates unbound.
public inline FRH_DelegateBlock(const DelegateType & InDelegate)Constructor for binding just the native-only version of the delegate.
public inline FRH_DelegateBlock(const DynamicDelegateType & InDynDelegate)Constructor for binding just the blueprint friendly version of the delegate.
public inline void ExecuteIfBound(ParamList... params) constExecutes both the native-only and blueprint friendly versions of the delegate, if they’re bound.
public inline bool IsBound() const
public inline bool IsBoundToObject(const void * Object) const

Members

public DelegateType Delegate

Native-only version of the delegate.

public DynamicDelegateType DynDelegate

Blueprint friendly version of the delegate.

public inline FRH_DelegateBlock()

Default constructor leaving both delegates unbound.

public inline FRH_DelegateBlock(const DelegateType & InDelegate)

Constructor for binding just the native-only version of the delegate.

public inline FRH_DelegateBlock(const DynamicDelegateType & InDynDelegate)

Constructor for binding just the blueprint friendly version of the delegate.

public inline void ExecuteIfBound(ParamList... params) const

Executes both the native-only and blueprint friendly versions of the delegate, if they’re bound.

public inline bool IsBound() const

public inline bool IsBoundToObject(const void * Object) const

struct FRH_ErrorInfo

Generic blueprint and native delegate used to report success or failure.

Generic handler for HTTP request errors.

Summary

MembersDescriptions
public FHttpResponsePtr HttpResponseThe raw http response.
public int32 ResponseCodeThe Error Code of the HTTP request.
public FString ResponseContentContent of the HTTP request response.
public bool bIsRHCommonErrorWhether the response is a RallyHere common error.
public FRHAPI_HzApiErrorModel RHCommonErrorThe response as a RallyHere common error.
public bool bIsRHValidationErrorWhether the response is a RallyHere validation error.
public FRHAPI_ValidationError RHValidationErrorThe response as a RallyHere validation error.
public inline FRH_ErrorInfo()Default constructor.
public inline FRH_ErrorInfo(const RallyHereAPI::FResponse * Response)Construct from Response Ptr.
public inline FRH_ErrorInfo(const RallyHereAPI::FResponse & Response)Construct from Response Ref.
public virtual ~FRH_ErrorInfo() = defaultDefault destructor.
public inline void ImportErrorInfo(const RallyHereAPI::FResponse & Response)Parses The HTTP response into the error info.

Members

public FHttpResponsePtr HttpResponse

The raw http response.

public int32 ResponseCode

The Error Code of the HTTP request.

public FString ResponseContent

Content of the HTTP request response.

public bool bIsRHCommonError

Whether the response is a RallyHere common error.

public FRHAPI_HzApiErrorModel RHCommonError

The response as a RallyHere common error.

public bool bIsRHValidationError

Whether the response is a RallyHere validation error.

public FRHAPI_ValidationError RHValidationError

The response as a RallyHere validation error.

public inline FRH_ErrorInfo()

Default constructor.

public inline FRH_ErrorInfo(const RallyHereAPI::FResponse * Response)

Construct from Response Ptr.

public inline FRH_ErrorInfo(const RallyHereAPI::FResponse & Response)

Construct from Response Ref.

public virtual ~FRH_ErrorInfo() = default

Default destructor.

public inline void ImportErrorInfo(const RallyHereAPI::FResponse & Response)

Parses The HTTP response into the error info.

Parameters

  • Response The response to parse.

struct FRH_CustomEndpointRequestWrapper

Wrapper calls for custom endpoint requests.

Summary

MembersDescriptions
public FString EndpointIdHttp Endpoint ID that is mapped to a URL
public int32 PriorityCall Priority
public FRHAPI_JsonValue BodyHttp Body as Json
public FString ContentTypeHttp Content Type
public inline FRH_CustomEndpointRequestWrapper()

Members

public FString EndpointId

Http Endpoint ID that is mapped to a URL

public int32 Priority

Call Priority

public FRHAPI_JsonValue Body

Http Body as Json

public FString ContentType

Http Content Type

public inline FRH_CustomEndpointRequestWrapper()

struct FRH_CustomEndpointResponseWrapper

Wrapper calls for custom endpoint responses.

Summary

MembersDescriptions
public int32 HttpResponseCodeHttp Response Code
public TArray< FString > HttpHeadersHttp Headers
public FRHAPI_JsonValue HttpBodyHttp Body as Json
public FRH_ErrorInfo RHErrorInfoParsed RallyHere error
public inline FRH_CustomEndpointResponseWrapper()
public inline FRH_CustomEndpointResponseWrapper(const RallyHereAPI::FResponse_CustomEndpointSend & Resp)

Members

public int32 HttpResponseCode

Http Response Code

public TArray< FString > HttpHeaders

Http Headers

public FRHAPI_JsonValue HttpBody

Http Body as Json

public FRH_ErrorInfo RHErrorInfo

Parsed RallyHere error

public inline FRH_CustomEndpointResponseWrapper()

public inline FRH_CustomEndpointResponseWrapper(const RallyHereAPI::FResponse_CustomEndpointSend & Resp)

struct FRH_PlayerPlatformId

Common structure for identifying players on any known platform.

Summary

MembersDescriptions
public FString UserIdPlayer identifier for the given platform type.
public ERHAPI_Platform PlatformTypePlatform type of this identifier.
public inline FORCEINLINE bool IsValid() constReturns whether or not this player platform ID has been filled with sensible data.
public inline bool operator==(const FRH_PlayerPlatformId & Other) constReturns whether or not this player platform ID exactly matches the given player platform ID.
public inline FRH_PlayerPlatformId()Default constructor that leaves the user ID empty and sets the platform type to “unknown”.
public inline FRH_PlayerPlatformId(const FString & InUserId,ERHAPI_Platform InPlatformType)Constructor for specifying user ID and platform type.

Members

public FString UserId

Player identifier for the given platform type.

public ERHAPI_Platform PlatformType

Platform type of this identifier.

public inline FORCEINLINE bool IsValid() const

Returns whether or not this player platform ID has been filled with sensible data.

public inline bool operator==(const FRH_PlayerPlatformId & Other) const

Returns whether or not this player platform ID exactly matches the given player platform ID.

public inline FRH_PlayerPlatformId()

Default constructor that leaves the user ID empty and sets the platform type to “unknown”.

public inline FRH_PlayerPlatformId(const FString & InUserId,ERHAPI_Platform InPlatformType)

Constructor for specifying user ID and platform type.

struct FRH_RemoteFileApiDirectory

A tuple specifying the directory of a file in the remote file storage.

Summary

MembersDescriptions
public ERHAPI_FileType FileTypeThe type of file to upload/download
public ERHAPI_EntityType EntityTypeThe type of entity the file is associated with
public FString EntityIdThe id of the entity the file is associated with
public GENERATED_USTRUCT_BODY()
public inline FRH_RemoteFileApiDirectory()
public inline FRH_RemoteFileApiDirectory(ERHAPI_FileType InFileType,ERHAPI_EntityType InEntityType,const FString & InEntityId)
public inline bool operator==(const FRH_RemoteFileApiDirectory & Other) constComparison operator.
public inline bool IsValid() const
public inline FString ToDescriptionString() constGet a string representation of the directory.

Members

public ERHAPI_FileType FileType

The type of file to upload/download

public ERHAPI_EntityType EntityType

The type of entity the file is associated with

public FString EntityId

The id of the entity the file is associated with

public GENERATED_USTRUCT_BODY()

public inline FRH_RemoteFileApiDirectory()

public inline FRH_RemoteFileApiDirectory(ERHAPI_FileType InFileType,ERHAPI_EntityType InEntityType,const FString & InEntityId)

public inline bool operator==(const FRH_RemoteFileApiDirectory & Other) const

Comparison operator.

public inline bool IsValid() const

public inline FString ToDescriptionString() const

Get a string representation of the directory.

Returns

A string representation of the directory