docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CurrencyResource

    The definition for a economy resource that represents a currency.

    Inheritance
    object
    CurrencyResource
    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 CurrencyResource

    Constructors

    CurrencyResource(string, string, TypeEnum, ModifiedMetadata, ModifiedMetadata, int, int, object)

    Initializes a new instance of the CurrencyResource class.

    Declaration
    [Preserve]
    public CurrencyResource(string id = null, string name = null, CurrencyResource.TypeEnum type = (CurrencyResource.TypeEnum)0, ModifiedMetadata created = null, ModifiedMetadata modified = null, int initial = 0, int max = 0, object customData = null)
    Parameters
    Type Name Description
    string id

    Identifier for the resource. (required).

    string name

    Name of the resource. (required).

    CurrencyResource.TypeEnum type

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

    ModifiedMetadata created

    created (required).

    ModifiedMetadata modified

    modified (required).

    int initial

    initial.

    int max

    max.

    object customData

    customData.

    Properties

    Created

    Gets or Sets Created

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

    CustomData

    Gets or Sets CustomData

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

    Id

    Identifier for the resource.

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

    Identifier for the resource.

    Initial

    Gets or Sets Initial

    Declaration
    [Preserve]
    public int Initial { get; set; }
    Property Value
    Type Description
    int

    Max

    Gets or Sets Max

    Declaration
    [Preserve]
    public int Max { get; set; }
    Property Value
    Type Description
    int

    Modified

    Gets or Sets Modified

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

    Name

    Name of the resource.

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

    Name of the resource.

    Type

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

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

    Type of the resource, 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)