Class CurrencyResource
The definition for a economy resource that represents a currency.
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "currency-resource")]
[Preserve]
public class CurrencyResource
Constructors
CurrencyResource(string, string, TypeEnum, ModifiedMetadata, ModifiedMetadata, int, int, object)
Initializes a new instance of the CurrencyResource class.
Declaration
[Preserve]
public CurrencyResource(string id = null, string name = null, CurrencyResource.TypeEnum type = (CurrencyResource.TypeEnum)0, ModifiedMetadata created = null, ModifiedMetadata modified = null, int initial = 0, int max = 0, object customData = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Identifier for the resource. (required). |
| string | name | Name of the resource. (required). |
| CurrencyResource.TypeEnum | type | Type of the resource, for example |
| ModifiedMetadata | created | created (required). |
| ModifiedMetadata | modified | modified (required). |
| int | initial | initial. |
| int | max | max. |
| object | customData | customData. |
Properties
Created
Gets or Sets Created
Declaration
[DataMember(Name = "created", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Created { get; set; }
Property Value
| Type | Description |
|---|---|
| ModifiedMetadata |
CustomData
Gets or Sets CustomData
Declaration
[DataMember(Name = "customData", EmitDefaultValue = true)]
[Preserve]
public object CustomData { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Id
Identifier for the resource.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Identifier for the resource. |
Initial
Gets or Sets Initial
Declaration
[DataMember(Name = "initial", EmitDefaultValue = false)]
[Preserve]
public int Initial { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Max
Gets or Sets Max
Declaration
[DataMember(Name = "max", EmitDefaultValue = false)]
[Preserve]
public int Max { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Modified
Gets or Sets Modified
Declaration
[DataMember(Name = "modified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Modified { get; set; }
Property Value
| Type | Description |
|---|---|
| ModifiedMetadata |
Name
Name of the resource.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Name of the resource. |
Type
Type of the resource, for example CURRENCY, INVENTORY_ITEM, VIRTUAL_PURCHASE, MONEY_PURCHASE.
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public CurrencyResource.TypeEnum Type { get; set; }
Property Value
| Type | Description |
|---|---|
| CurrencyResource.TypeEnum | Type of the resource, for example |