Class VirtualPurchaseItemResponse
VirtualPurchaseItemResponse
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "virtual-purchase-item-response")]
[Preserve]
public class VirtualPurchaseItemResponse
Constructors
VirtualPurchaseItemResponse(string, string, TypeEnum, List<VirtualPurchaseItemResponseCostsInner>, List<VirtualPurchaseItemResponseRewardsInner>, object, ModifiedMetadata, ModifiedMetadata)
Initializes a new instance of the Virtual
Declaration
[Preserve]
public VirtualPurchaseItemResponse(string id = null, string name = null, VirtualPurchaseItemResponse.TypeEnum type = (VirtualPurchaseItemResponse.TypeEnum)0, List<VirtualPurchaseItemResponseCostsInner> costs = null, List<VirtualPurchaseItemResponseRewardsInner> rewards = null, object customData = null, ModifiedMetadata created = null, ModifiedMetadata modified = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the item. (required). |
string | name | A descriptive name for the item. (required). |
Virtual |
type | type (required). |
List<Virtual |
costs | The costs deducted from the player when making the purchase. A cost is an ID of a currency or inventory item, plus an amount. An item can be used in more than one cost line. (required). |
List<Virtual |
rewards | The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, plus an amount. An item can be used in more than one reward line. (required). |
object | customData | Max size when serialised 5 kilobits. (required). |
Modified |
created | created (required). |
Modified |
modified | modified (required). |
Properties
Costs
The costs deducted from the player when making the purchase. A cost is an ID of a currency or inventory item, plus an amount. An item can be used in more than one cost line.
Declaration
[DataMember(Name = "costs", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<VirtualPurchaseItemResponseCostsInner> Costs { get; set; }
Property Value
Type | Description |
---|---|
List<Virtual |
The costs deducted from the player when making the purchase. A cost is an ID of a currency or inventory item, plus an amount. An item can be used in more than one cost line. |
Created
Gets or Sets Created
Declaration
[DataMember(Name = "created", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Created { get; set; }
Property Value
Type | Description |
---|---|
Modified |
CustomData
Max size when serialised 5 kilobits.
Declaration
[DataMember(Name = "customData", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public object CustomData { get; set; }
Property Value
Type | Description |
---|---|
object | Max size when serialised 5 kilobits. |
Id
ID of the item.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the item. |
Modified
Gets or Sets Modified
Declaration
[DataMember(Name = "modified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Modified { get; set; }
Property Value
Type | Description |
---|---|
Modified |
Name
A descriptive name for the item.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | A descriptive name for the item. |
Rewards
The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, plus an amount. An item can be used in more than one reward line.
Declaration
[DataMember(Name = "rewards", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<VirtualPurchaseItemResponseRewardsInner> Rewards { get; set; }
Property Value
Type | Description |
---|---|
List<Virtual |
The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, plus an amount. An item can be used in more than one reward line. |
Type
Gets or Sets Type
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public VirtualPurchaseItemResponse.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Virtual |