public MovieRepository()
 {
     movieApi = RestService.For <IMovieApi>(AppConstants.API_ENDPOINT);
 }
Esempio n. 2
0
        /// <summary>
        /// Initialises a new instance of the <see cref="ExternalMovieControllerDependencies"/> class.
        /// </summary>
        /// <param name="modelFactory">The model factory.</param>
        /// <param name="movieApi">The movie API handler.</param>
        /// <param name="genreApi">The genre API handler.</param>
        /// <param name="personApi">The person API handler.</param>
        /// <param name="movieService">The movie service.</param>
        public ExternalMovieControllerDependencies(MovieImportModelFactory modelFactory, IMovieApi movieApi, IGenreApi genreApi, IPersonApi personApi, IMovieService movieService)
        {
            GenreApi     = genreApi;
            ModelFactory = modelFactory;
            MovieApi     = movieApi;
            MovieService = movieService;
            PersonApi    = personApi;

            ModelFactory.Genres = GenreApi.GetMovieGenres();
        }
 public MovieSearchController(IMovieApi movieApi, ImageDownloader im)
 {
     _imgDl          = im;
     _api            = movieApi;
     this.TabBarItem = new UITabBarItem(UITabBarSystemItem.Search, 0);
 }
Esempio n. 4
0
 public PopularViewModel(IMovieApi api)
 {
     this._movies = new List <Movie>();
     this._api    = api;
 }