Class VirtualPurchaseResourceResponseRewardsInner
VirtualPurchaseResourceResponseRewardsInner
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "virtual_purchase_resource_response_rewards_inner")]
[Preserve]
public class VirtualPurchaseResourceResponseRewardsInner
Constructors
VirtualPurchaseResourceResponseRewardsInner(string, int, object)
Initializes a new instance of the Virtual
Declaration
[Preserve]
public VirtualPurchaseResourceResponseRewardsInner(string resourceId = null, int amount = 0, object defaultInstanceData = null)
Parameters
Type | Name | Description |
---|---|---|
string | resourceId | The ID of the currency or inventory item used as a reward. (required). |
int | amount | The amount of the resource credited as part of the purchase. (required). |
object | defaultInstanceData | Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null".. |
Properties
Amount
The amount of the resource credited 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 credited as part of the purchase. |
DefaultInstanceData
Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null".
Declaration
[DataMember(Name = "defaultInstanceData", EmitDefaultValue = true)]
[Obsolete]
[Preserve]
public object DefaultInstanceData { get; set; }
Property Value
Type | Description |
---|---|
object | Instance data saved against the new inventory item. Max size when serialised 5 kilobits. This property has been deprecated and will only return "null". |
ResourceId
The ID of the currency or inventory item used as a reward.
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 reward. |