C# Class PhotoSharingApp.Universal.ViewModels.UploadViewModel

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

Public Methods

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

Loads the state.

LoadState ( UploadViewModelEditPhotoArgs uploadViewModelEditPhotoArgs ) : System.Threading.Tasks.Task

Loads the view model state.

UploadViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IUploadFinishedHandler uploadFinishedHandler, IDialogService dialogService ) : System

Initializes a new instance of the UploadViewModel class.

Private Methods

Method Description
OnChooseCategory ( ) : void
OnUpload ( ) : void
UpdatePhoto ( ) : System.Threading.Tasks.Task
UploadNewPhoto ( ) : System.Threading.Tasks.Task

Uploads the photo.

Method Details

LoadState() public method

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

LoadState() public method

Loads the view model state.
public LoadState ( UploadViewModelEditPhotoArgs uploadViewModelEditPhotoArgs ) : System.Threading.Tasks.Task
uploadViewModelEditPhotoArgs UploadViewModelEditPhotoArgs The arguments.
return System.Threading.Tasks.Task

UploadViewModel() public method

Initializes a new instance of the UploadViewModel class.
public UploadViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IUploadFinishedHandler uploadFinishedHandler, IDialogService dialogService ) : System
navigationFacade INavigationFacade The navigation facade.
photoService IPhotoService The photo service.
authEnforcementHandler IAuthEnforcementHandler Authentication enforcement handler.
uploadFinishedHandler IUploadFinishedHandler The handler that is called when the upload finished.
dialogService IDialogService The dialog service.
return System