C# Class GW2PAO.Modules.Events.ViewModels.MetaEventTimers.MetaEventViewModel

View model for an event shown by the event tracker
Inheritance: BindableBase
Show file Open project: SamHurne/gw2pao Class Usage Examples

Public Methods

Method Description
MetaEventViewModel ( MetaEvent metaEventData, EventsUserData userData ) : System

Default Constructor

Update ( System.TimeSpan currentTimeUtc ) : void

Updates the TimeUntilNextStage, TimeSinceStageStarted, CurrentStage, and NextStage

Private Methods

Method Description
AddToHiddenEvents ( ) : void

Adds the meta event to the list of hidden meta events

InitializeStagesAndTimers ( System.TimeSpan currentTime ) : void

Initializes the current and next stage of this meta event based on the provided current time

RefreshVisibility ( ) : void

Refreshes the visibility of the meta event

Method Details

MetaEventViewModel() public method

Default Constructor
public MetaEventViewModel ( MetaEvent metaEventData, EventsUserData userData ) : System
metaEventData GW2PAO.API.Data.Entities.MetaEvent
userData EventsUserData
return System

Update() public method

Updates the TimeUntilNextStage, TimeSinceStageStarted, CurrentStage, and NextStage
public Update ( System.TimeSpan currentTimeUtc ) : void
currentTimeUtc System.TimeSpan
return void