v3.1.2
2020.3+

Class GetInventoryResult

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

Namespace: Unity.Services.Economy.Model
Syntax
[Preserve]
public class GetInventoryResult : PageableResult<PlayersInventoryItem, GetInventoryResult>

Properties

PlayersInventoryItems

The currently fetched items.

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

Methods

GetNextResultsAsync(Int32)

Retrieves the next page of the players inventory items.

Declaration
[Preserve]
protected override async Task<GetInventoryResult> GetNextResultsAsync(int itemsPerFetch)
Parameters
TypeNameDescription
Int32itemsPerFetch

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

Returns
TypeDescription
Task<GetInventoryResult>

A new GetInventoryResult

Overrides
Unity.Services.Economy.Model.PageableResult<Unity.Services.Economy.Model.PlayersInventoryItem, Unity.Services.Economy.Model.GetInventoryResult>.GetNextResultsAsync(System.Int32)
Exceptions
TypeCondition
EconomyException

Thrown if request is unsuccessful