C# Class Popcorn.ViewModels.Movie.MovieViewModel

Manage the movie
Inheritance: ViewModelBase
Afficher le fichier Open project: bbougot/Popcorn

Méthodes publiques

Méthode Description
Cleanup ( ) : void

Cleanup resources

MovieViewModel ( IDownloadMovieViewModel downloadMovieViewModel, IMovieService movieService, ITrailerViewModel trailerViewModel ) : System.Diagnostics

Initializes a new instance of the MovieViewModel class.

Private Methods

Méthode Description
LoadMovieAsync ( Popcorn.Models.Movie.MovieShort movie ) : Task

Load the requested movie

RegisterCommands ( ) : void

Register commands

RegisterMessages ( ) : void

Register messages

StopLoadingMovie ( ) : void

Stop loading the movie

StopLoadingTrailer ( ) : void

Stop playing the movie's trailer

StopPlayingMovie ( ) : void

Stop playing a movie

StopPlayingTrailer ( ) : void

Stop playing the movie's trailer

Method Details

Cleanup() public méthode

Cleanup resources
public Cleanup ( ) : void
Résultat void

MovieViewModel() public méthode

Initializes a new instance of the MovieViewModel class.
public MovieViewModel ( IDownloadMovieViewModel downloadMovieViewModel, IMovieService movieService, ITrailerViewModel trailerViewModel ) : System.Diagnostics
downloadMovieViewModel IDownloadMovieViewModel ViewModel which manages the movie download
movieService IMovieService Service used to interact with movies
trailerViewModel ITrailerViewModel ViewModel which manages the trailer
Résultat System.Diagnostics