C# Class GW2PAO.API.Services.WvWService

Inheritance: IWvWService
Afficher le fichier Open project: SamHurne/gw2pao

Méthodes publiques

Méthode Description
GetAllObjectives ( string matchId ) : IEnumerable

Retrieves a list of the objectives in the given match for all maps

GetMapObjectives ( string matchId, WvWMap map ) : IEnumerable

Retrieves a list of the objectives in the given match and map

GetMatchIDs ( ) : string>.Dictionary

Retrieves a full list of all match IDs for all servers

GetMatchId ( int worldId ) : string

Find and returns the Match ID for the given world

GetTeamColor ( int worldId ) : WorldColor

Retrieves the TeamColor of the given World

GetTeamColors ( ) : WorldColor>.Dictionary

Retrieves a full list of all team colors for all servers

GetWorldScore ( int worldId ) : int

Retrieves the current WvW score for the given world

GetWorldScore ( string matchId, int worldId ) : int

Retrieves the current WvW score for the given world

LoadData ( ) : void

Loads the WvW objects and initializes all cached information

WvWService ( ) : System

Default constructor

WvWService ( WvWObjectiveNameEnum>.IStringProvider objectiveNamesProvider ) : System

Alternate constructor

Private Methods

Méthode Description
GetCurrentMatchup ( int worldId ) : Matchup

Retrieves either the cached matchup details, or requests new matchup details

Method Details

GetAllObjectives() public méthode

Retrieves a list of the objectives in the given match for all maps
public GetAllObjectives ( string matchId ) : IEnumerable
matchId string The match's ID
Résultat IEnumerable

GetMapObjectives() public méthode

Retrieves a list of the objectives in the given match and map
public GetMapObjectives ( string matchId, WvWMap map ) : IEnumerable
matchId string The match's ID
map WvWMap
Résultat IEnumerable

GetMatchIDs() public méthode

Retrieves a full list of all match IDs for all servers
public GetMatchIDs ( ) : string>.Dictionary
Résultat string>.Dictionary

GetMatchId() public méthode

Find and returns the Match ID for the given world
public GetMatchId ( int worldId ) : string
worldId int The ID for the world
Résultat string

GetTeamColor() public méthode

Retrieves the TeamColor of the given World
public GetTeamColor ( int worldId ) : WorldColor
worldId int The ID for the world
Résultat WorldColor

GetTeamColors() public méthode

Retrieves a full list of all team colors for all servers
public GetTeamColors ( ) : WorldColor>.Dictionary
Résultat WorldColor>.Dictionary

GetWorldScore() public méthode

Retrieves the current WvW score for the given world
public GetWorldScore ( int worldId ) : int
worldId int The ID for the world
Résultat int

GetWorldScore() public méthode

Retrieves the current WvW score for the given world
public GetWorldScore ( string matchId, int worldId ) : int
matchId string The match ID for the world
worldId int The ID for the world
Résultat int

LoadData() public méthode

Loads the WvW objects and initializes all cached information
public LoadData ( ) : void
Résultat void

WvWService() public méthode

Default constructor
public WvWService ( ) : System
Résultat System

WvWService() public méthode

Alternate constructor
public WvWService ( WvWObjectiveNameEnum>.IStringProvider objectiveNamesProvider ) : System
objectiveNamesProvider WvWObjectiveNameEnum>.IStringProvider The StringProvider that supplies localized objective names. If null, a default implementation is used
Résultat System