Skip to content

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_OptionalInventory Context for a Player.
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

Inventory Context for a Player.


#### `public bool `[`Inventory_IsSet`](#structFRHAPI__InventoryContextResponse_1a78e0c2b4d95885d45a22e322049fc23a)

true if Inventory_Optional has been set to a value


#### `public virtual bool `[`FromJson`](#structFRHAPI__InventoryContextResponse_1ae834b0342287ef7e2daf8fb9ed47f70d)`(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`](#structFRHAPI__InventoryContextResponse_1a66b6953f96b5caba364122a3328ee0db)`(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`](RHAPI_Inventory.md#structFRHAPI__Inventory)` & `[`GetInventory`](#structFRHAPI__InventoryContextResponse_1af5475321db2829b4bad00d99efb69a4b)`()`

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


#### `public inline const `[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__Inventory)` & `[`GetInventory`](#structFRHAPI__InventoryContextResponse_1a973fbb972b1333e42340f83ef003defd)`() const`

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


#### `public inline const `[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__Inventory)` & `[`GetInventory`](#structFRHAPI__InventoryContextResponse_1a05a932a30a4523e5d12bf7a199103542)`(const `[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__Inventory)` & DefaultValue) const`

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


#### `public inline bool `[`GetInventory`](#structFRHAPI__InventoryContextResponse_1a9b4af4258c9a4fb458ddab83157d4e7f)`(`[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__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`](RHAPI_Inventory.md#structFRHAPI__Inventory)` * `[`GetInventoryOrNull`](#structFRHAPI__InventoryContextResponse_1a799ccbd402f02d24f1172b38ad4469fa)`()`

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


#### `public inline const `[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__Inventory)` * `[`GetInventoryOrNull`](#structFRHAPI__InventoryContextResponse_1ac2709dcadd009f843c4c66000a969128)`() const`

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


#### `public inline void `[`SetInventory`](#structFRHAPI__InventoryContextResponse_1a55bde5b6a680c3b5985044755a31d1f3)`(`[`FRHAPI_Inventory`](RHAPI_Inventory.md#structFRHAPI__Inventory)` NewValue)`

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


#### `public inline void `[`ClearInventory`](#structFRHAPI__InventoryContextResponse_1a41cea14fe48b16820fe86c112069ede4)`()`

Clears the value of Inventory_Optional and sets Inventory_IsSet to false.