v3.1.2
2020.3+

Class InventoryExchangeItem

Represents a player's inventory item that was part of a purchase.

Inheritance
InventoryExchangeItem
Namespace: Unity.Services.Economy.Model
Syntax
[Preserve]
public class InventoryExchangeItem

Constructors

InventoryExchangeItem(String, Int32, List<String>)

Declaration
[Preserve]
public InventoryExchangeItem(string id, int amount, List<string> playersInventoryItemIds)
Parameters
TypeNameDescription
Stringid
Int32amount
List<String>playersInventoryItemIds

Fields

Amount

The amount of these items that were used/rewarded to make the purchase.

Declaration
[Preserve]
public int Amount
Field Value
TypeDescription
Int32

Id

The configuration ID of this inventory item.

Declaration
[Preserve]
public string Id
Field Value
TypeDescription
String

PlayersInventoryItemIds

A list of ID's of the PlayersInventoryItem's that were used/rewarded in this purchase.

Declaration
[Preserve]
public List<string> PlayersInventoryItemIds
Field Value
TypeDescription
List<String>