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

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

The WorldWrapper type exposes the following members.

Constructors
  NameDescription
Public methodWorldWrapper
A wrapper for all world endpoint calls.
Public methodWorldWrapper(RequestedLanguage)
A wrapper for all world 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 methodGetAll
Returns all worlds.
Public methodGetAll(RequestedLanguage)
Returns all worlds.
Public methodGetById(Int32)
Returns the world that matches the Id.
Public methodGetById(Int32, RequestedLanguage)
Returns the world that matches the Id.
Public methodGetByIds(IEnumerableInt32)
Returns the worlds that matches the ids.
Public methodGetByIds(Int32)
Returns the worlds that matches the ids.
Public methodGetByIds(IEnumerableInt32, RequestedLanguage)
Returns the worlds that matches the ids.
Public methodGetByPage(Int32, Int32)
Returns worlds in pagesize.
Public methodGetByPage(Int32, Int32, RequestedLanguage)
Returns worlds in pagesize.
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 GetAWorld()
{
    World pikenSquare = GW2Api.V2().Worlds.GetById(2012);
}

public void GetMultipleWorldsWithLanguage()
{
    RequestedLanguage language = RequestedLanguage.de;
    IEnumerable<World> worlds = GW2Api.V2(language).Worlds.GetById(1001, 2012);
}

public void GetAllWorlds()
{
    IEnumerable<World> allWorlds = GW2Api.V2().Worlds.GetAll();
}
See Also