Class CurrencyBalanceResponse
CurrencyBalanceResponse
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "currency-balance-response")]
[Preserve]
public class CurrencyBalanceResponse
Constructors
CurrencyBalanceResponse(string, long, string, ModifiedMetadata, ModifiedMetadata)
Initializes a new instance of the Currency
Declaration
[Preserve]
public CurrencyBalanceResponse(string currencyId = null, long balance = 0, string writeLock = null, ModifiedMetadata created = null, ModifiedMetadata modified = null)
Parameters
Type | Name | Description |
---|---|---|
string | currencyId | Resource ID of the currency. (required). |
long | balance | The player's balance. (required). |
string | writeLock | The write lock for the currency balance. (required). |
Modified |
created | created (required). |
Modified |
modified | modified (required). |
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. |
Created
Gets or Sets Created
Declaration
[DataMember(Name = "created", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Created { get; set; }
Property Value
Type | Description |
---|---|
Modified |
CurrencyId
Resource ID of the currency.
Declaration
[DataMember(Name = "currencyId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CurrencyId { get; set; }
Property Value
Type | Description |
---|---|
string | Resource ID of the currency. |
Modified
Gets or Sets Modified
Declaration
[DataMember(Name = "modified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Modified { get; set; }
Property Value
Type | Description |
---|---|
Modified |
WriteLock
The write lock for the currency balance.
Declaration
[DataMember(Name = "writeLock", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string WriteLock { get; set; }
Property Value
Type | Description |
---|---|
string | The write lock for the currency balance. |