Class CurrencyBalanceRequest
CurrencyBalanceRequest
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "currency-balance-request")]
[Preserve]
public class CurrencyBalanceRequest
Constructors
CurrencyBalanceRequest(string, long, string)
Initializes a new instance of the CurrencyBalanceRequest class.
Declaration
[Preserve]
public CurrencyBalanceRequest(string currencyId = null, long balance = 0, string writeLock = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | currencyId | Resource ID of the currency.. |
| long | balance | The player's balance. (required). |
| string | writeLock | The write lock for the currency balance.. |
Properties
Balance
The player's balance.
Declaration
[DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public long Balance { get; set; }
Property Value
| Type | Description |
|---|---|
| long | The player's balance. |
CurrencyId
Resource ID of the currency.
Declaration
[DataMember(Name = "currencyId", EmitDefaultValue = false)]
[Obsolete]
[Preserve]
public string CurrencyId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Resource ID of the currency. |
WriteLock
The write lock for the currency balance.
Declaration
[DataMember(Name = "writeLock", EmitDefaultValue = false)]
[Preserve]
public string WriteLock { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The write lock for the currency balance. |