Click or drag to resize
ExchangeWrapper Class
View Project on GitHub
Represents a wrapper for the v2/commerce/exchange endpoint.
Inheritance Hierarchy
SystemObject
  GW2CSharpApiBase
    GW2CSharp.V2.Unauthenticated.Commerce.ExchangeExchangeWrapper

Namespace: GW2CSharp.V2.Unauthenticated.Commerce.Exchange
Assembly: GW2CSharp (in GW2CSharp.dll) Version: 0.15.0.0 (0.15)
Syntax
C#
public class ExchangeWrapper : ApiBase

The ExchangeWrapper type exposes the following members.

Constructors
  NameDescription
Public methodExchangeWrapper
Initializes a new instance of the ExchangeWrapper class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCoin
Returns a specific amount of coins.
Public methodGetGem
Returns a specific amount of gems.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
public void GetValueOfCoinsInGems()
{
    Coin coinFromRawApiMoney = GW2Api.V2().Exchanges.GetCoin(new Money(10000));
    Coin coinFromClass = GW2Api.V2().Exchanges.GetCoin(new Money(10, 50, 2)); //2g 50s 10c
}

public void GetValueOfGemInCoins()
{
    Gem gem = GW2Api.V2().Exchanges.GetGem(100);
}
See Also