docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RealMoneyPurchaseResource

    The definition for a economy resource that represents a real money purchase.

    Inheritance
    object
    RealMoneyPurchaseResource
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Economy
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class RealMoneyPurchaseResource

    Constructors

    RealMoneyPurchaseResource(string, string, TypeEnum, RealMoneyPurchaseResourceStoreIdentifiers, List<Reward>, object, ModifiedMetadata, ModifiedMetadata)

    Initializes a new instance of the RealMoneyPurchaseResource class.

    Declaration
    [Preserve]
    public RealMoneyPurchaseResource(string id = null, string name = null, RealMoneyPurchaseResource.TypeEnum type = (RealMoneyPurchaseResource.TypeEnum)0, RealMoneyPurchaseResourceStoreIdentifiers storeIdentifiers = null, List<Reward> 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).

    RealMoneyPurchaseResource.TypeEnum type

    Type of the item, for example CURRENCY, INVENTORY_ITEM, VIRTUAL_PURCHASE, MONEY_PURCHASE. (required).

    RealMoneyPurchaseResourceStoreIdentifiers storeIdentifiers

    storeIdentifiers (required).

    List<Reward> rewards

    The rewards credited to the player when making the purchase. A reward is composed of the ID of a currency or inventory item, the amount of that currency or item, and the default instance data (for inventory items). (required).

    object customData

    Max size when serialised 5 KB. (required).

    ModifiedMetadata created

    created (required).

    ModifiedMetadata modified

    modified (required).

    Properties

    Created

    Gets or Sets Created

    Declaration
    [Preserve]
    public ModifiedMetadata Created { get; set; }
    Property Value
    Type Description
    ModifiedMetadata

    CustomData

    Max size when serialised 5 KB.

    Declaration
    [Preserve]
    public object CustomData { get; set; }
    Property Value
    Type Description
    object

    Max size when serialised 5 KB.

    Id

    ID of the resource.

    Declaration
    [Preserve]
    public string Id { get; set; }
    Property Value
    Type Description
    string

    ID of the resource.

    Modified

    Gets or Sets Modified

    Declaration
    [Preserve]
    public ModifiedMetadata Modified { get; set; }
    Property Value
    Type Description
    ModifiedMetadata

    Name

    A descriptive name for the resource.

    Declaration
    [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 composed of the ID of a currency or inventory item, the amount of that currency or item, and the default instance data (for inventory items).

    Declaration
    [Preserve]
    public List<Reward> Rewards { get; set; }
    Property Value
    Type Description
    List<Reward>

    The rewards credited to the player when making the purchase. A reward is composed of the ID of a currency or inventory item, the amount of that currency or item, and the default instance data (for inventory items).

    StoreIdentifiers

    Gets or Sets StoreIdentifiers

    Declaration
    [Preserve]
    public RealMoneyPurchaseResourceStoreIdentifiers StoreIdentifiers { get; set; }
    Property Value
    Type Description
    RealMoneyPurchaseResourceStoreIdentifiers

    Type

    Type of the item, for example CURRENCY, INVENTORY_ITEM, VIRTUAL_PURCHASE, MONEY_PURCHASE.

    Declaration
    [Preserve]
    public RealMoneyPurchaseResource.TypeEnum Type { get; set; }
    Property Value
    Type Description
    RealMoneyPurchaseResource.TypeEnum

    Type of the item, for example CURRENCY, INVENTORY_ITEM, VIRTUAL_PURCHASE, MONEY_PURCHASE.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)