| AchievementWrapper Class |
Namespace: GW2CSharp.V2.Unauthenticated.Achievement
public class AchievementWrapper : ApiBase
The AchievementWrapper type exposes the following members.
| Name | Description | |
|---|---|---|
| AchievementWrapper |
Returns a wrapper for all achievements endpoint calls.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Get(Int32) |
Returns achievement that matches the id.
| |
| Get(Int32, RequestedLanguage) |
Returns achievement that matches the id.
| |
| GetAll |
Returns all achievements.
| |
| GetAll(RequestedLanguage) |
Returns all achievements.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetMultiple(Int32) |
Returns all achievements that match the ids.
| |
| GetMultiple(RequestedLanguage, Int32) |
Returns all achievements that match the ids.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
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); }