C# Class PhotoSharingApp.Universal.ViewModels.StreamViewModel

The ViewModel for the photo stream view.
Inheritance: ViewModelBase
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method Description
LoadState ( StreamViewModelArgs args ) : System.Threading.Tasks.Task

Loads the state.

LoadState ( StreamViewModelThumbnailArgs args ) : System.Threading.Tasks.Task

Loads the state.

StreamViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService ) : System

Initializes a new instance of the StreamViewModel class.

Private Methods

Method Description
OnGiveGold ( Photo photo ) : void
OnGotoCamera ( ) : void
OnPhotoSelected ( Photo photo ) : void

Action to take when a photo has been selected

OnRefresh ( ) : void
OnUserSelected ( User user ) : void

Action to take when a user has been selected

Method Details

LoadState() public method

Loads the state.
public LoadState ( StreamViewModelArgs args ) : System.Threading.Tasks.Task
args StreamViewModelArgs The arguments.
return System.Threading.Tasks.Task

LoadState() public method

Loads the state.
public LoadState ( StreamViewModelThumbnailArgs args ) : System.Threading.Tasks.Task
args StreamViewModelThumbnailArgs The arguments.
return System.Threading.Tasks.Task

StreamViewModel() public method

Initializes a new instance of the StreamViewModel class.
public StreamViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService ) : System
navigationFacade INavigationFacade The navigation facade.
photoService IPhotoService The photo service.
authEnforcementHandler IAuthEnforcementHandler the authentication enforcement handler
dialogService IDialogService The dialog service.
return System