C# Class GW2PAO.API.Services.WvWService

Inheritance: IWvWService
Exibir arquivo Open project: SamHurne/gw2pao

Public Methods

Method 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

Method Description
GetCurrentMatchup ( int worldId ) : Matchup

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

Method Details

GetAllObjectives() public method

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

GetMapObjectives() public method

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
return IEnumerable

GetMatchIDs() public method

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

GetMatchId() public method

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

GetTeamColor() public method

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

GetTeamColors() public method

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

GetWorldScore() public method

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

GetWorldScore() public method

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
return int

LoadData() public method

Loads the WvW objects and initializes all cached information
public LoadData ( ) : void
return void

WvWService() public method

Default constructor
public WvWService ( ) : System
return System

WvWService() public method

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
return System