Class VirtualPurchaseResourceResponseCostsInner
VirtualPurchaseResourceResponseCostsInner
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "virtual_purchase_resource_response_costs_inner")]
[Preserve]
public class VirtualPurchaseResourceResponseCostsInner
Constructors
VirtualPurchaseResourceResponseCostsInner(string, int)
Initializes a new instance of the Virtual
Declaration
[Preserve]
public VirtualPurchaseResourceResponseCostsInner(string resourceId = null, int amount = 0)
Parameters
Type | Name | Description |
---|---|---|
string | resourceId | The ID of the currency or inventory item used as a cost. (required). |
int | amount | The amount of the resource deducted as part of the purchase. (required). |
Properties
Amount
The amount of the resource deducted as part of the purchase.
Declaration
[DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
int | The amount of the resource deducted as part of the purchase. |
ResourceId
The ID of the currency or inventory item used as a cost.
Declaration
[DataMember(Name = "resourceId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string ResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | The ID of the currency or inventory item used as a cost. |