ColorWrapper Class |
Namespace: GW2CSharp.V2.Unauthenticated.Colors
public class ColorWrapper : ApiBase
The ColorWrapper type exposes the following members.
Name | Description | |
---|---|---|
![]() | ColorWrapper |
A wrapper for all color 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.) |
![]() | GetAll |
Returns the a Dictionary with all known colors.
|
![]() | GetAll(RequestedLanguage) |
Returns the a Dictionary with all known colors.
|
![]() | GetById(Int32) |
Returns the color that matches the id.
|
![]() | GetById(Int32, RequestedLanguage) |
Returns the color that matches the id.
|
![]() | GetByPage(Int32, Int32) |
Returns colors in pagesize.
|
![]() | GetByPage(Int32, Int32, RequestedLanguage) |
Returns colors in pagesize.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | 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 GetASingleColor() { Color skyColor = GW2Api.V2().Colors.GetById(10); } public void GetASingleColorInASpecificLanguage() { RequestedLanguage language = RequestedLanguage.de; Color skyColor = GW2Api.V2(language).Colors.GetById(10); } public void GetAllColors() { Dictionary<int, Lazy<Color>> allColors = GW2Api.V2().Colors.GetAll(); Color skyColor = allColors[10].Value; }