Class InventoryExchangeItem
InventoryExchangeItem
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "inventory-exchange-item")]
[Preserve]
public class InventoryExchangeItem
Constructors
InventoryExchangeItem(string, int, List<string>)
Initializes a new instance of the Inventory
Declaration
[Preserve]
public InventoryExchangeItem(string id = null, int amount = 0, List<string> playersInventoryItemIds = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the inventory item. (required). |
int | amount | Number of player inventory items. (required). |
List<string> | playersInventoryItemIds | The |
Properties
Amount
Number of player inventory items.
Declaration
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
int | Number of player inventory items. |
Id
ID of the inventory item.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the inventory item. |
PlayersInventoryItemIds
The playersInventoryItemIds
for the player's items to be added or removed.
Declaration
[DataMember(Name = "playersInventoryItemIds", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<string> PlayersInventoryItemIds { get; set; }