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

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

The AchievementWrapper type exposes the following members.

Constructors
  NameDescription
Public methodAchievementWrapper
Returns a wrapper for all achievements 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(Int32)
Returns achievement that matches the id.
Public methodGet(Int32, RequestedLanguage)
Returns achievement that matches the id.
Public methodGetAll
Returns all achievements.
Public methodGetAll(RequestedLanguage)
Returns all achievements.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMultiple(Int32)
Returns all achievements that match the ids.
Public methodGetMultiple(RequestedLanguage, Int32)
Returns all achievements that match the ids.
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 GetASingleAchievement()
{
    Achievement achievement = GW2Api.V2().Achievements.Get(10);
}

public void GetASingleAchievementInASpecificLanguage()
{
    RequestedLanguage language = RequestedLanguage.de;
    Achievement achievement = GW2Api.V2().Colors.GetById(10, language);
}

public void GetAllAchievements()
{
    Dictionary<int, Lazy<Achievement>> allAchievements = GW2Api.V2().Achievements.GetAll();
}

public void GetMultipleAchievements()
{
    Dictionary<int, Lazy<Achievement>> multipleAchievements = GW2Api.V2().Achievements.GetMultiple(language, 10, 20, 40);
}
See Also