Method GetBalancesAsync
GetBalancesAsync(GetBalancesOptions)
Gets the current balances for the currently signed in player. The balances are available on the returned object using the
Balances
property.
The results are paginated - the first set of results are initially returned, and more can be requested with the GetNextAsync
method.
The HasNext
property indicates whether there are more results to be returned.
Throws a EconomyException with a reason code and explanation if the request is badly formed, unauthorized or uses a missing resource.
Declaration
Task<GetBalancesResult> GetBalancesAsync(GetBalancesOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
GetBalancesOptions | options | (Optional) Use to set the number of items to fetch per call. |
Returns
Type | Description |
---|---|
Task<GetBalancesResult> | A GetBalancesResult object, with properties as specified above. |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if request is unsuccessful |
EconomyRateLimitedException | Thrown if the service returned rate limited error. |