v3.1.2
2020.3+

Class GetBalancesResult

Provides paginated access to the list of balances retrieved and allows you to retrieve the next page.

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

Properties

Balances

The list of currently fetched balances.

Declaration
[Preserve]
public List<PlayerBalance> Balances { get; }
Property Value
TypeDescription
List<PlayerBalance>

Methods

GetNextResultsAsync(Int32)

Fetches the next set of results.

Declaration
[Preserve]
protected override async Task<GetBalancesResult> 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<GetBalancesResult>

A new GetBalancesResult

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

Thrown if request is unsuccessful