Class CurrencyModifyBalanceRequest
CurrencyModifyBalanceRequest
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "currency-modify-balance-request")]
[Preserve]
public class CurrencyModifyBalanceRequest
Constructors
CurrencyModifyBalanceRequest(string, long, string)
Initializes a new instance of the Currency
Declaration
[Preserve]
public CurrencyModifyBalanceRequest(string currencyId = null, long amount = 0, string writeLock = null)
Parameters
Type | Name | Description |
---|---|---|
string | currencyId | Resource ID of the currency.. |
long | amount | The value by which to increment or decrement. Zero is allowed but results in no change to the currency balance. (required). |
string | writeLock | The write lock for the currency balance.. |
Properties
Amount
The value by which to increment or decrement. Zero is allowed but results in no change to the currency balance.
Declaration
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public long Amount { get; set; }
Property Value
Type | Description |
---|---|
long | The value by which to increment or decrement. Zero is allowed but results in no change to the currency 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. |