Method ExchangeGoldToGems
- Namespace
- GuildWars2.Commerce
- Assembly
- GuildWars2.dll
ExchangeGoldToGems(Coin, MissingMemberBehavior, CancellationToken)
Retrieves the current exchange rate of gold to gems.
public Task<(GoldToGems Value, MessageContext Context)> ExchangeGoldToGems(Coin gold, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
goldCoinThe amount of gold to exchange for gems.
missingMemberBehaviorMissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<(GoldToGems Value, MessageContext Context)>
A task that represents the API request.