C# Class openhabUWP.ViewModels.HomePageViewModel

Inheritance: ViewModelBase, IHomePageViewModel
显示文件 Open project: altima/openhabUWP

Public Methods

Method Description
HomePageViewModel ( IEventAggregator eventAggregator, IRestService restService, INavigationService navigationService, IPushClientService pushClientService, IOpenhabDatabase database ) : System
OnNavigatedTo ( NavigatedToEventArgs e, object>.Dictionary viewModelState ) : void
OnNavigatingFrom ( NavigatingFromEventArgs e, object>.Dictionary viewModelState, bool suspending ) : void

Private Methods

Method Description
Load ( string pageName ) : void
OnDataReceived ( string obj ) : void
OnEventReceived ( string obj ) : void
RegeisterForPushEvents ( string url, string fallbackUrl ) : void
ShowInfo ( ) : void
ShowSetup ( ) : void
ShowSitemaps ( ) : void
WidgetTapped ( SwitchWidgetButtonTappedArgs args ) : void

Method Details

HomePageViewModel() public method

public HomePageViewModel ( IEventAggregator eventAggregator, IRestService restService, INavigationService navigationService, IPushClientService pushClientService, IOpenhabDatabase database ) : System
eventAggregator IEventAggregator
restService IRestService
navigationService INavigationService
pushClientService IPushClientService
database IOpenhabDatabase
return System

OnNavigatedTo() public method

public OnNavigatedTo ( NavigatedToEventArgs e, object>.Dictionary viewModelState ) : void
e NavigatedToEventArgs
viewModelState object>.Dictionary
return void

OnNavigatingFrom() public method

public OnNavigatingFrom ( NavigatingFromEventArgs e, object>.Dictionary viewModelState, bool suspending ) : void
e NavigatingFromEventArgs
viewModelState object>.Dictionary
suspending bool
return void