Method GetCurrencyAsync
GetCurrencyAsync(string)
Gets a Currency Definition for a specific currency.
Declaration
[Obsolete("GetCurrencyAsync has been replaced by first caching your configuration using SyncConfigurationAsync and then using the GetCurrency method. This API will be removed in an upcoming release.", false)]
Task<CurrencyDefinition> GetCurrencyAsync(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The configuration ID of the currency to fetch. |
Returns
Type | Description |
---|---|
Task<CurrencyDefinition> | A CurrencyDefinition for the specified currency, or null if the currency doesn't exist. |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if request is unsuccessful |