docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GetInventoryResult

    Provides paginated access to the list of retrieved player's inventory items.

    Inheritance
    object
    PageableResult<PlayersInventoryItem, GetInventoryResult>
    GetInventoryResult
    Inherited Members
    PageableResult<PlayersInventoryItem, GetInventoryResult>.m_Results
    PageableResult<PlayersInventoryItem, GetInventoryResult>.HasNext
    PageableResult<PlayersInventoryItem, GetInventoryResult>.GetNextResultsAsync(int)
    PageableResult<PlayersInventoryItem, GetInventoryResult>.GetNextAsync(int)
    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 GetInventoryResult : PageableResult<PlayersInventoryItem, GetInventoryResult>

    Properties

    PlayersInventoryItems

    The currently fetched items.

    Declaration
    [Preserve]
    public List<PlayersInventoryItem> PlayersInventoryItems { get; }
    Property Value
    Type Description
    List<PlayersInventoryItem>

    Methods

    GetNextResultsAsync(int)

    Retrieves the next page of the players inventory items.

    Declaration
    [Preserve]
    protected override Task<GetInventoryResult> GetNextResultsAsync(int itemsPerFetch)
    Parameters
    Type Name Description
    int itemsPerFetch

    The number of items to fetch. Can be between 1-100 inclusive and defaults to 20.

    Returns
    Type Description
    Task<GetInventoryResult>

    A new GetInventoryResult

    Overrides
    PageableResult<PlayersInventoryItem, GetInventoryResult>.GetNextResultsAsync(int)
    Exceptions
    Type Condition
    EconomyException

    Thrown if request is unsuccessful

    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)