docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventoryItemResource

    The definition for a economy resource that represents a inventory item.

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

    Constructors

    InventoryItemResource(string, string, TypeEnum, ModifiedMetadata, ModifiedMetadata, object)

    Initializes a new instance of the InventoryItemResource class.

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

    Identifier for the resource. (required).

    string name

    Name of the resource. (required).

    InventoryItemResource.TypeEnum type

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

    ModifiedMetadata created

    created (required).

    ModifiedMetadata modified

    modified (required).

    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.

    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 InventoryItemResource.TypeEnum Type { get; set; }
    Property Value
    Type Description
    InventoryItemResource.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)