docs.unity.cn
    Show / Hide Table of Contents

    Class VirtualTransaction

    Describes the Virtual transaction info, and outcome.

    Inheritance
    Object
    CatalogItem
    BaseTransaction
    VirtualTransaction
    Inherited Members
    BaseTransaction.payout
    CatalogItem.displayName
    CatalogItem.key
    CatalogItem.GetTags(ICollection<Tag>, Boolean)
    CatalogItem.HasTag(Tag)
    CatalogItem.GetHashCode()
    CatalogItem.Equals(Object)
    CatalogItem.GetStaticProperties()
    CatalogItem.GetStaticProperties(Dictionary<String, Property>)
    CatalogItem.HasStaticProperty(String)
    CatalogItem.GetStaticProperty(String)
    CatalogItem.TryGetStaticProperty(String, Property)
    CatalogItem.Item[String]
    Namespace: UnityEngine.GameFoundation
    Syntax
    public sealed class VirtualTransaction : BaseTransaction, IEquatable<CatalogItem>, IComparable<CatalogItem>

    Properties

    costs

    The description of the cost of the transaction. That is what the player pays to get the payout.

    Declaration
    public TransactionExchangeDefinition costs { get; }
    Property Value
    Type Description
    TransactionExchangeDefinition

    Methods

    AutoFillCostItemIds(ICollection<String>)

    Gets a list of the first InventoryItem ids from the inventory that satisfy the cost of a transaction.

    Declaration
    public void AutoFillCostItemIds(ICollection<string> costItemIds)
    Parameters
    Type Name Description
    ICollection<String> costItemIds

    An existing collection of strings to populate (must be non-null and must be empty).

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the collection passed in is not empty.

    VerifyCost(ICollection<Exception>)

    Test whether the costs can be met by the currencies in the wallet and/or the items in the inventory.

    Declaration
    public void VerifyCost(ICollection<Exception> exceptions)
    Parameters
    Type Name Description
    ICollection<Exception> exceptions

    A collection to populate with all exceptions generated.

    VerifyPayout(ICollection<Exception>)

    Test whether the payouts are valid.

    Declaration
    public void VerifyPayout(ICollection<Exception> exceptions)
    Parameters
    Type Name Description
    ICollection<Exception> exceptions

    A collection to populate with all exceptions generated.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021