Click or drag to resize
CurrencyWrapper Class
View Project on GitHub
Represents a wrapper for the v2/currencies endpoint.
Inheritance Hierarchy
SystemObject
  GW2CSharpApiBase
    GW2CSharp.V2.Unauthenticated.CurrenciesCurrencyWrapper

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

The CurrencyWrapper type exposes the following members.

Constructors
  NameDescription
Public methodCurrencyWrapper
Returns a wrapper for all currency endpoint calls.
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 methodGet(CurrencyType)
Returns the currency that matches the CurrencyType.
Public methodGet(CurrencyType, RequestedLanguage)
Returns the currency that matches the CurrencyType.
Public methodGetAll
Returns all currencies.
Public methodGetAll(RequestedLanguage)
Returns all currencies.
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 GetACurrency()
{
    Currency gem = GW2Api.V2().Currencies.Get(CurrencyType.Gem);
}

public void GetACurrencyInASpecificLanguage()
{
    RequestedLanguage language = RequestedLanguage.de;
    Currency gem = GW2Api.V2(language).Currencies.Get(CurrencyType.Gem);
}
See Also