C# Class GW2PAO.API.Services.EventsService

Inheritance: IEventsService
Afficher le fichier Open project: SamHurne/gw2pao Class Usage Examples

Méthodes publiques

Méthode Description
EventsService ( ) : System

Default constructor

EventsService ( IStringProvider worldEventNamesProvider, IStringProvider metaEventNamesProvider, ITimeProvider currentTimeProvider ) : System

Alternate constructor

GetLocalizedName ( System.Guid id ) : string

Returns the localized name for the given event or meta event stage

GetState ( System.Guid id ) : Data.Enums.EventState

Retrieves the current state of the given event

GetState ( WorldBossEvent evt ) : Data.Enums.EventState

Retrieves the current state of the given event

GetTimeSinceActive ( WorldBossEvent evt ) : System.TimeSpan

Retrieves the amount of time since the last active time for the given event, using the megaserver timetables

GetTimeUntilActive ( WorldBossEvent evt ) : System.TimeSpan

Retrieves the amount of time until the next active time for the given event, using the megaserver timetables

LoadTables ( bool isAdjustedBossTimersTable ) : void

Loads the events time tables and initializes all cached event information

Method Details

EventsService() public méthode

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

EventsService() public méthode

Alternate constructor
public EventsService ( IStringProvider worldEventNamesProvider, IStringProvider metaEventNamesProvider, ITimeProvider currentTimeProvider ) : System
worldEventNamesProvider IStringProvider
metaEventNamesProvider IStringProvider
currentTimeProvider ITimeProvider A time provider for determining the current name. If null, the EventsServer will use the DefaultTimeProvider
Résultat System

GetLocalizedName() public méthode

Returns the localized name for the given event or meta event stage
public GetLocalizedName ( System.Guid id ) : string
id System.Guid ID of the event or meta event stage to return the name of
Résultat string

GetState() public méthode

Retrieves the current state of the given event
public GetState ( System.Guid id ) : Data.Enums.EventState
id System.Guid The ID of the event to retrieve the state of
Résultat Data.Enums.EventState

GetState() public méthode

Retrieves the current state of the given event
public GetState ( WorldBossEvent evt ) : Data.Enums.EventState
evt GW2PAO.API.Data.Entities.WorldBossEvent The event to retrieve the state of
Résultat Data.Enums.EventState

GetTimeSinceActive() public méthode

Retrieves the amount of time since the last active time for the given event, using the megaserver timetables
public GetTimeSinceActive ( WorldBossEvent evt ) : System.TimeSpan
evt GW2PAO.API.Data.Entities.WorldBossEvent The event to retrieve the time for
Résultat System.TimeSpan

GetTimeUntilActive() public méthode

Retrieves the amount of time until the next active time for the given event, using the megaserver timetables
public GetTimeUntilActive ( WorldBossEvent evt ) : System.TimeSpan
evt GW2PAO.API.Data.Entities.WorldBossEvent The event to retrieve the time for
Résultat System.TimeSpan

LoadTables() public méthode

Loads the events time tables and initializes all cached event information
public LoadTables ( bool isAdjustedBossTimersTable ) : void
isAdjustedBossTimersTable bool
Résultat void