C# 클래스 GW2PAO.API.Services.EventsService

상속: IEventsService
파일 보기 프로젝트 열기: SamHurne/gw2pao 1 사용 예제들

공개 메소드들

메소드 설명
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