Skip to content

RHAPI_RankUpdateRequestV2

Summary

MembersDescriptions
struct FRHAPI_RankUpdateRequestV2A request body to calculate and update players’ ratings from a match.

struct FRHAPI_RankUpdateRequestV2

struct FRHAPI_RankUpdateRequestV2
: public FRHAPI_Model

A request body to calculate and update players’ ratings from a match.

Summary

MembersDescriptions
public FString InstanceId_OptionalID for the instance the match took place on.
public bool InstanceId_IsSettrue if InstanceId_Optional has been set to a value
public FString RankIdID for the rank type used in this match.
public int32 MatchLengthSecondsHow many seconds the match lasted.
public TArray< FRHAPI_RankedTeam>TeamsList of teams that participated in this match.
public virtual bool FromJson(const TSharedPtr< FJsonValue > & JsonValue)Fills this object with data from the passed in JSON.
public virtual void WriteJson(TSharedRef< TJsonWriter<>> & Writer) constWrites the data from this object into the specified JSON Writer stream.
public inline FString & GetInstanceId()Gets the value of InstanceId_Optional, regardless of it having been set.
public inline const FString & GetInstanceId() constGets the value of InstanceId_Optional, regardless of it having been set.
public inline const FString & GetInstanceId(const FString & DefaultValue) constGets the value of InstanceId_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetInstanceId(FString & OutValue) constFills OutValue with the value of InstanceId_Optional and returns true if it has been set, otherwise returns false.
public inline FString * GetInstanceIdOrNull()Returns a pointer to InstanceId_Optional, if it has been set, otherwise returns nullptr.
public inline const FString * GetInstanceIdOrNull() constReturns a pointer to InstanceId_Optional, if it has been set, otherwise returns nullptr.
public inline void SetInstanceId(FString NewValue)Sets the value of InstanceId_Optional and also sets InstanceId_IsSet to true.
public inline void ClearInstanceId()Clears the value of InstanceId_Optional and sets InstanceId_IsSet to false.
public inline FString & GetRankId()Gets the value of RankId.
public inline const FString & GetRankId() constGets the value of RankId.
public inline void SetRankId(FString NewValue)Sets the value of RankId.
public inline int32 & GetMatchLengthSeconds()Gets the value of MatchLengthSeconds.
public inline const int32 & GetMatchLengthSeconds() constGets the value of MatchLengthSeconds.
public inline void SetMatchLengthSeconds(int32 NewValue)Sets the value of MatchLengthSeconds.
public inline bool IsMatchLengthSecondsDefaultValue() constReturns true if MatchLengthSeconds matches the default value.
public inline void SetMatchLengthSecondsToDefault()Sets the value of MatchLengthSeconds to its default
public inline TArray< FRHAPI_RankedTeam> &GetTeams()Gets the value of Teams.
public inline const TArray< FRHAPI_RankedTeam> &GetTeams() constGets the value of Teams.
public inline void SetTeams(TArray< FRHAPI_RankedTeam > NewValue)Sets the value of Teams.

Members

public FString InstanceId_Optional

ID for the instance the match took place on.

public bool InstanceId_IsSet

true if InstanceId_Optional has been set to a value

public FString RankId

ID for the rank type used in this match.

public int32 MatchLengthSeconds

How many seconds the match lasted.

public TArray< FRHAPI_RankedTeam>Teams

List of teams that participated in this match.

public virtual bool FromJson(const TSharedPtr< FJsonValue > & JsonValue)

Fills this object with data from the passed in JSON.

Parameters

  • JsonValue Data from the API call.

Returns

true if parsing of the JSON data was successful.

public virtual void WriteJson(TSharedRef< TJsonWriter<>> & Writer) const

Writes the data from this object into the specified JSON Writer stream.

Parameters

  • Writer JSON Writer stream to push .

public inline FString & GetInstanceId()

Gets the value of InstanceId_Optional, regardless of it having been set.

public inline const FString & GetInstanceId() const

Gets the value of InstanceId_Optional, regardless of it having been set.

public inline const FString & GetInstanceId(const FString & DefaultValue) const

Gets the value of InstanceId_Optional, if it has been set, otherwise it returns DefaultValue.

public inline bool GetInstanceId(FString & OutValue) const

Fills OutValue with the value of InstanceId_Optional and returns true if it has been set, otherwise returns false.

public inline FString * GetInstanceIdOrNull()

Returns a pointer to InstanceId_Optional, if it has been set, otherwise returns nullptr.

public inline const FString * GetInstanceIdOrNull() const

Returns a pointer to InstanceId_Optional, if it has been set, otherwise returns nullptr.

public inline void SetInstanceId(FString NewValue)

Sets the value of InstanceId_Optional and also sets InstanceId_IsSet to true.

public inline void ClearInstanceId()

Clears the value of InstanceId_Optional and sets InstanceId_IsSet to false.

public inline FString & GetRankId()

Gets the value of RankId.

public inline const FString & GetRankId() const

Gets the value of RankId.

public inline void SetRankId(FString NewValue)

Sets the value of RankId.

public inline int32 & GetMatchLengthSeconds()

Gets the value of MatchLengthSeconds.

public inline const int32 & GetMatchLengthSeconds() const

Gets the value of MatchLengthSeconds.

public inline void SetMatchLengthSeconds(int32 NewValue)

Sets the value of MatchLengthSeconds.

public inline bool IsMatchLengthSecondsDefaultValue() const

Returns true if MatchLengthSeconds matches the default value.

public inline void SetMatchLengthSecondsToDefault()

Sets the value of MatchLengthSeconds to its default

public inline TArray< FRHAPI_RankedTeam> &GetTeams()

Gets the value of Teams.

public inline const TArray< FRHAPI_RankedTeam> &GetTeams() const

Gets the value of Teams.

public inline void SetTeams(TArray< FRHAPI_RankedTeam > NewValue)

Sets the value of Teams.