Class Rewards
Represent the rewards given in exchange for a purchase.
Namespace: Unity.Services.Economy.Model
Syntax
public class Rewards : object
Constructors
Rewards(List<CurrencyExchangeItem>, List<InventoryExchangeItem>)
Declaration
public Rewards(List<CurrencyExchangeItem> currencies, List<InventoryExchangeItem> inventory)
Parameters
| Type | Name | Description |
|---|---|---|
| List<CurrencyExchangeItem> | currencies | |
| List<InventoryExchangeItem> | inventory |
Fields
Currency
A list of CurrencyExchangeItem describing the currencies rewarded as part of this purchase.
Declaration
public List<CurrencyExchangeItem> Currency
Field Value
| Type | Description |
|---|---|
| List<CurrencyExchangeItem> |
Inventory
A list of InventoryExchangeItem describing the items rewarded as part of this purchase.
Declaration
public List<InventoryExchangeItem> Inventory
Field Value
| Type | Description |
|---|---|
| List<InventoryExchangeItem> |