Skip to content
RallyHere Docs
GitHub

RHAPI_InventoryContextResponse

Summary

MembersDescriptions
struct FRHAPI_InventoryContextResponseInventory Context for a Player.

struct FRHAPI_InventoryContextResponse

struct FRHAPI_InventoryContextResponse
  : public FRHAPI_Model

Inventory Context for a Player.

Summary

MembersDescriptions
public FRHAPI_Inventory Inventory_Optional
public bool Inventory_IsSettrue if Inventory_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 FRHAPI_Inventory&GetInventory()Gets the value of Inventory_Optional, regardless of it having been set.
public inline const FRHAPI_Inventory&GetInventory() constGets the value of Inventory_Optional, regardless of it having been set.
public inline const FRHAPI_Inventory&GetInventory(const FRHAPI_Inventory & DefaultValue) constGets the value of Inventory_Optional, if it has been set, otherwise it returns DefaultValue.
public inline bool GetInventory(FRHAPI_Inventory & OutValue) constFills OutValue with the value of Inventory_Optional and returns true if it has been set, otherwise returns false.
public inline FRHAPI_Inventory*GetInventoryOrNull()Returns a pointer to Inventory_Optional, if it has been set, otherwise returns nullptr.
public inline const FRHAPI_Inventory*GetInventoryOrNull() constReturns a pointer to Inventory_Optional, if it has been set, otherwise returns nullptr.
public inline void SetInventory(FRHAPI_Inventory NewValue)Sets the value of Inventory_Optional and also sets Inventory_IsSet to true.
public inline void ClearInventory()Clears the value of Inventory_Optional and sets Inventory_IsSet to false.

Members

public FRHAPI_Inventory Inventory_Optional

public bool Inventory_IsSet

true if Inventory_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 FRHAPI_Inventory&GetInventory()

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

public inline const FRHAPI_Inventory&GetInventory() const

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

public inline const FRHAPI_Inventory&GetInventory(const FRHAPI_Inventory & DefaultValue) const

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

public inline bool GetInventory(FRHAPI_Inventory & OutValue) const

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

public inline FRHAPI_Inventory*GetInventoryOrNull()

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

public inline const FRHAPI_Inventory*GetInventoryOrNull() const

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

public inline void SetInventory(FRHAPI_Inventory NewValue)

Sets the value of Inventory_Optional and also sets Inventory_IsSet to true.

public inline void ClearInventory()

Clears the value of Inventory_Optional and sets Inventory_IsSet to false.