v3.1.2
2020.3+

Class CurrencyExchangeItem

Represents a currency that was part of a purchase.

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

Constructors

CurrencyExchangeItem(String, Int32)

Declaration
[Preserve]
public CurrencyExchangeItem(string id, int amount)
Parameters
TypeNameDescription
Stringid
Int32amount

Fields

Amount

The amount of this currency that was used/rewarded in the purchase.

Declaration
[Preserve]
public int Amount
Field Value
TypeDescription
Int32

Id

The ID of the currency.

Declaration
[Preserve]
public string Id
Field Value
TypeDescription
String