docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CurrencyExchangeItem

    Represents a currency that was part of a purchase.

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

    Constructors

    CurrencyExchangeItem(string, int)

    Declaration
    [Preserve]
    [JsonConstructor]
    public CurrencyExchangeItem(string id, int amount)
    Parameters
    Type Name Description
    string id
    int amount

    Fields

    Amount

    The amount of this currency that was used/rewarded in the purchase.

    Declaration
    [Preserve]
    public int Amount
    Field Value
    Type Description
    int

    Id

    The ID of the currency.

    Declaration
    [Preserve]
    public string Id
    Field Value
    Type Description
    string
    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)