Class InventoryItemResource
The definition for a economy resource that represents a inventory item.
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "inventory-item-resource")]
[Preserve]
public class InventoryItemResource
Constructors
InventoryItemResource(string, string, TypeEnum, ModifiedMetadata, ModifiedMetadata, object)
Initializes a new instance of the InventoryItemResource class.
Declaration
[Preserve]
public InventoryItemResource(string id = null, string name = null, InventoryItemResource.TypeEnum type = (InventoryItemResource.TypeEnum)0, ModifiedMetadata created = null, ModifiedMetadata modified = null, object customData = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | Identifier for the resource. (required). |
| string | name | Name of the resource. (required). |
| InventoryItemResource.TypeEnum | type | Type of the resource, for example |
| ModifiedMetadata | created | created (required). |
| ModifiedMetadata | modified | modified (required). |
| 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. |
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 InventoryItemResource.TypeEnum Type { get; set; }
Property Value
| Type | Description |
|---|---|
| InventoryItemResource.TypeEnum | Type of the resource, for example |