Skip to main content

RHAPI_BodyBeginNewSession

Summary​

MembersDescriptions
struct FRHAPI_BodyBeginNewSession

struct FRHAPI_BodyBeginNewSession ​

struct FRHAPI_BodyBeginNewSession
: public FRHAPI_Model

Summary​

MembersDescriptions
public FString CountryCodeISO 3166-1 alpha-2 country code for the user
public FString DeviceId_OptionalUnique Identifier for the device a session is started on. E.g should be the same for multiple users on the same device.
public bool DeviceId_IsSettrue if DeviceId_Optional has been set to a value
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 & GetCountryCode()Gets the value of CountryCode.
public inline const FString & GetCountryCode() constGets the value of CountryCode.
public inline void SetCountryCode(const FString & NewValue)Sets the value of CountryCode.
public inline void SetCountryCode(FString && NewValue)Sets the value of CountryCode using move semantics.
public inline FString & GetDeviceId()Gets the value of DeviceId_Optional, regardless of it having been set.
public inline const FString & GetDeviceId() constGets the value of DeviceId_Optional, regardless of it having been set.
public inline const FString & GetDeviceId(const FString & DefaultValue) constGets the value of DeviceId_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetDeviceId(FString & OutValue) constFills OutValue with the value of DeviceId_Optional and returns true if it has been set, otherwise returns false.
public inline FString * GetDeviceIdOrNull()Returns a pointer to DeviceId_Optional, if it has been set, otherwise returns nullptr.
public inline const FString * GetDeviceIdOrNull() constReturns a pointer to DeviceId_Optional, if it has been set, otherwise returns nullptr.
public inline void SetDeviceId(const FString & NewValue)Sets the value of DeviceId_Optional and also sets DeviceId_IsSet to true.
public inline void SetDeviceId(FString && NewValue)Sets the value of DeviceId_Optional and also sets DeviceId_IsSet to true using move semantics.
public inline void ClearDeviceId()Clears the value of DeviceId_Optional and sets DeviceId_IsSet to false.
public inline bool IsDeviceIdSet() constChecks whether DeviceId_Optional has been set.

Members​

public FString CountryCode ​

ISO 3166-1 alpha-2 country code for the user

public FString DeviceId_Optional ​

Unique Identifier for the device a session is started on. E.g should be the same for multiple users on the same device.

public bool DeviceId_IsSet ​

true if DeviceId_Optional has been set to a value

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 & GetCountryCode() ​

Gets the value of CountryCode.

public inline const FString & GetCountryCode() const ​

Gets the value of CountryCode.

public inline void SetCountryCode(const FString & NewValue) ​

Sets the value of CountryCode.

public inline void SetCountryCode(FString && NewValue) ​

Sets the value of CountryCode using move semantics.

public inline FString & GetDeviceId() ​

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

public inline const FString & GetDeviceId() const ​

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

public inline const FString & GetDeviceId(const FString & DefaultValue) const ​

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

public inline bool GetDeviceId(FString & OutValue) const ​

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

public inline FString * GetDeviceIdOrNull() ​

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

public inline const FString * GetDeviceIdOrNull() const ​

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

public inline void SetDeviceId(const FString & NewValue) ​

Sets the value of DeviceId_Optional and also sets DeviceId_IsSet to true.

public inline void SetDeviceId(FString && NewValue) ​

Sets the value of DeviceId_Optional and also sets DeviceId_IsSet to true using move semantics.

public inline void ClearDeviceId() ​

Clears the value of DeviceId_Optional and sets DeviceId_IsSet to false.

public inline bool IsDeviceIdSet() const ​

Checks whether DeviceId_Optional has been set.