public UpcomingMoviePageViewModel(IApplicationServices <Results> rService, IApplicationServices <Genres> gService, IApplicationServices <Images> imgService, ISettings setSetvices, IDefaultSettings defSetService, IUIFunctions uiFuncService, INavigationService navigationService, IMobileAnalyticsFunctions analitycFuncService, IMobileCenterCrashes mbcService) { _navigationService = navigationService; resultsService = rService; genresService = gService; imagesService = imgService; settingsService = setSetvices; defaultSettingsService = defSetService; uiFunctionsService = uiFuncService; analyticsFunctionsService = analitycFuncService; mobileCenterCrashesService = mbcService; GetMoreItensCommand = new DelegateCommand(LoadMoreItens); ItemTappedCommand = new DelegateCommand <Results>((obj) => MovieDetails(obj)); SearchMovieCommand = new DelegateCommand <string>((obj) => SearchMovie(obj)); defaultSettingsService.ConfigureInitialSettings(); GetMovieList(); }
public MovieSelectionPageViewModel(IUIFunctions uiFunc, INavigationService navigationService, IMobileCenterCrashes mbcService, IMobileAnalyticsFunctions mafService) { _navigationService = navigationService; uiFunctionsService = uiFunc; mobileCenterCrashesService = mbcService; analyticsFunctionsService = mafService; mobileCenterCrashesService.DidAppCrash(); OnMovieTapped = new DelegateCommand(PlayMovie); }