C# Class GW2PAO.Modules.Commerce.CommerceController

Inheritance: ICommerceController
Mostrar archivo Open project: SamHurne/gw2pao

Private Properties

Property Type Description
CanShowNotification bool
CommerceController System
DisplayNotification void
InitializeItemPrices void
Refresh void

Public Methods

Method Description
Shutdown ( ) : void

Forces a shutdown of the controller, including all running timers/threads

Start ( ) : void

Starts the automatic refresh

Stop ( ) : void

Stops the automatic refresh

Private Methods

Method Description
CanShowNotification ( ItemPriceViewModel priceWatch, PriceNotificationType notificationType ) : bool

Determines if we can show a notification for the given price notification, based on user settings

CommerceController ( ICommerceService commerceService, CommerceUserData userData ) : System
DisplayNotification ( GW2PAO.Modules.Commerce.ViewModels.PriceNotification.PriceNotificationViewModel priceNotification ) : void

Adds an objective to the notifications collection, and then removes the objective 10 seconds later

InitializeItemPrices ( ) : void

Initializes the collection of price watches

Refresh ( object state = null ) : void

The main Refresh functionality Refreshes the buy/sell listings for any items currently watched

Method Details

Shutdown() public method

Forces a shutdown of the controller, including all running timers/threads
public Shutdown ( ) : void
return void

Start() public method

Starts the automatic refresh
public Start ( ) : void
return void

Stop() public method

Stops the automatic refresh
public Stop ( ) : void
return void