C# Класс GW2PAO.API.Services.EventsService

Наследование: IEventsService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

EventsService() публичный Метод

Default constructor
public EventsService ( ) : System
Результат System

EventsService() публичный Метод

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
Результат System

GetLocalizedName() публичный Метод

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
Результат string

GetState() публичный Метод

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
Результат Data.Enums.EventState

GetState() публичный Метод

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
Результат Data.Enums.EventState

GetTimeSinceActive() публичный Метод

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
Результат System.TimeSpan

GetTimeUntilActive() публичный Метод

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
Результат System.TimeSpan

LoadTables() публичный Метод

Loads the events time tables and initializes all cached event information
public LoadTables ( bool isAdjustedBossTimersTable ) : void
isAdjustedBossTimersTable bool
Результат void