Class VirtualPurchaseResourceResponse
VirtualPurchaseResourceResponse
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "virtual-purchase-resource-response")]
[Preserve]
public class VirtualPurchaseResourceResponse
Constructors
VirtualPurchaseResourceResponse(string, string, TypeEnum, List<VirtualPurchaseResourceResponseCostsInner>, List<VirtualPurchaseResourceResponseRewardsInner>, object, ModifiedMetadata, ModifiedMetadata)
Initializes a new instance of the VirtualPurchaseResourceResponse class.
Declaration
[Preserve]
public VirtualPurchaseResourceResponse(string id = null, string name = null, VirtualPurchaseResourceResponse.TypeEnum type = (VirtualPurchaseResourceResponse.TypeEnum)0, List<VirtualPurchaseResourceResponseCostsInner> costs = null, List<VirtualPurchaseResourceResponseRewardsInner> rewards = null, object customData = null, ModifiedMetadata created = null, ModifiedMetadata modified = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the resource. (required). |
string | name | A descriptive name for the resource. (required). |
VirtualPurchaseResourceResponse.TypeEnum | type | type (required). |
List<VirtualPurchaseResourceResponseCostsInner> | 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<VirtualPurchaseResourceResponseRewardsInner> | rewards | The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. An item can be used in more than one reward line. (required). |
object | customData | Max size when serialized 5 kilobits. (required). |
ModifiedMetadata | created | created (required). |
ModifiedMetadata | 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<VirtualPurchaseResourceResponseCostsInner> Costs { get; set; }
Property Value
Type | Description |
---|---|
List<VirtualPurchaseResourceResponseCostsInner> | 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 |
---|---|
ModifiedMetadata |
CustomData
Max size when serialized 5 kilobits.
Declaration
[DataMember(Name = "customData", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public object CustomData { get; set; }
Property Value
Type | Description |
---|---|
object | Max size when serialized 5 kilobits. |
Id
ID of the resource.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of 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
A descriptive name for the resource.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | A descriptive name for the resource. |
Rewards
The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. An item can be used in more than one reward line.
Declaration
[DataMember(Name = "rewards", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<VirtualPurchaseResourceResponseRewardsInner> Rewards { get; set; }
Property Value
Type | Description |
---|---|
List<VirtualPurchaseResourceResponseRewardsInner> | The rewards credited to the player when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. 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 VirtualPurchaseResourceResponse.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
VirtualPurchaseResourceResponse.TypeEnum |