v3.1.2
2020.3+

Class Rewards

Represent the rewards given in exchange for a purchase.

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

Constructors

Rewards(List<CurrencyExchangeItem>, List<InventoryExchangeItem>)

Declaration
[Preserve]
public Rewards(List<CurrencyExchangeItem> currencies, List<InventoryExchangeItem> inventory)
Parameters
TypeNameDescription
List<CurrencyExchangeItem>currencies
List<InventoryExchangeItem>inventory

Fields

Currency

A list of CurrencyExchangeItem describing the currencies rewarded as part of this purchase.

Declaration
[Preserve]
public List<CurrencyExchangeItem> Currency
Field Value
TypeDescription
List<CurrencyExchangeItem>

Inventory

A list of InventoryExchangeItem describing the items rewarded as part of this purchase.

Declaration
[Preserve]
public List<InventoryExchangeItem> Inventory
Field Value
TypeDescription
List<InventoryExchangeItem>