Class Cost
Cost
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: solution.dll
Syntax
[Preserve]
public class Cost
Constructors
Cost(string, int)
Initializes a new instance of the Cost class.
Declaration
[Preserve]
public Cost(string resourceId = null, int amount = 0)
Parameters
Type | Name | Description |
---|---|---|
string | resourceId | The ID of the currency or inventory item that is deducted as part of the purchase. (required). |
int | amount | The amount of the item deducted as part of the purchase. (required). |
Properties
Amount
The amount of the item deducted as part of the purchase.
Declaration
[Preserve]
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
int | The amount of the item deducted as part of the purchase. |
ResourceId
The ID of the currency or inventory item that is deducted as part of the purchase.
Declaration
[Preserve]
public string ResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | The ID of the currency or inventory item that is deducted as part of the purchase. |