Class PlayerPurchaseVirtualRequest
PlayerPurchaseVirtualRequest
Inherited Members
Namespace: Unity.Services.Apis.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "player-purchase-virtual-request")]
[Preserve]
public class PlayerPurchaseVirtualRequest
Constructors
PlayerPurchaseVirtualRequest(string, List<string>)
Initializes a new instance of the PlayerPurchaseVirtualRequest class.
Declaration
[Preserve]
public PlayerPurchaseVirtualRequest(string id = null, List<string> playersInventoryItemIds = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the purchase. (required). |
List<string> | playersInventoryItemIds | IDs of the player's inventory items that should be used for any item costs associated with the purchase.. |
Properties
Id
ID of the purchase.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the purchase. |
PlayersInventoryItemIds
IDs of the player's inventory items that should be used for any item costs associated with the purchase.
Declaration
[DataMember(Name = "playersInventoryItemIds", EmitDefaultValue = false)]
[Preserve]
public List<string> PlayersInventoryItemIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> | IDs of the player's inventory items that should be used for any item costs associated with the purchase. |