CurrencyService
ZEPETO.Currency.CurrencyService
CurrencyService
manages operations associated with ZEPETO World currencies.
This service enables players to check their balances for both the official ZEPETO currency (ZEM) and in-World currencies.
Hierarchy
↳
CurrencyService
Constructors
constructor
• new CurrencyService()
Overrides
System.Object.constructor
Methods
GetOfficialCurrencyBalanceAsync
▸ Static
GetOfficialCurrencyBalanceAsync(): OfficialCurrencyBalanceRequest
This asynchronous method retrieves the balance for ZEPETO’s official currency (ZEM).
Returns
OfficialCurrencyBalanceRequest
A OfficialCurrencyBalanceRequest
object. When the asynchronous process is complete, you can access the BalanceResponse
object by the responseData
property.
GetUserCurrencyBalanceAsync
▸ Static
GetUserCurrencyBalanceAsync($currencyId
): BaseRequest$1
<BalanceResponse
>
This asynchronous method retrieves the balance for a specific in-World currency based on the provided currency ID.
Parameters
Name | Type | Description |
---|---|---|
$currencyId | string | ID of the currency to fetch |
Returns
BaseRequest$1
<BalanceResponse
>
A BaseRequest
object. When the asynchronous process is complete, you can access the BalanceResponse
object by the responseData
property.
GetUserCurrencyBalancesAsync
▸ Static
GetUserCurrencyBalancesAsync(): BaseRequest$1
<BalanceListResponse
>
This asynchronous method retrieves the balance information for every defined in-World currency.
Returns
BaseRequest$1
<BalanceListResponse
>
A BaseRequest
object. When the asynchronous process is complete, you can access the BalanceListResponse
object by the responseData
property.