Example #1
0
        internal static MovieDetailsModel GetDetails(int movieId)
        {
            var detail =
                HttpRequester.Get <MovieDetailsModel>(BaseServicesUrl + "movies/" + movieId);

            return(detail);
        }
Example #2
0
        internal static IEnumerable <MovieModel> GetAllMovies()
        {
            var allMovies =
                HttpRequester.Get <IEnumerable <MovieModel> >(BaseServicesUrl + "movies");

            return(allMovies);
        }
Example #3
0
        internal static IEnumerable <ProjectionModel> GetMoviesProjections(int cinemaID, int movieID)
        {
            var allProjection =
                HttpRequester.Get <IEnumerable <ProjectionModel> >(BaseServicesUrl + "cinemas/" + cinemaID + "/projections/" + movieID);

            return(allProjection);
        }
Example #4
0
        internal static IEnumerable <MovieModel> GetMoviesForCinema(int cinemaID)
        {
            var allMoviesInCinema =
                HttpRequester.Get <IEnumerable <MovieModel> >(BaseServicesUrl + "cinemas/" + cinemaID);

            return(allMoviesInCinema);
        }
Example #5
0
        internal static IEnumerable <CinemaModel> GetAllCinemas()
        {
            var allCinemas =
                HttpRequester.Get <IEnumerable <CinemaModel> >(BaseServicesUrl + "cinemas");

            return(allCinemas);
        }
Example #6
0
        internal static IEnumerable <MovieModel> SearchForMovie(string searchKeyword)
        {
            //api/movies?keyword=pie
            var foundMovies =
                HttpRequester.Get <IEnumerable <MovieModel> >(BaseServicesUrl + "movies?keyword=" + searchKeyword);

            return(foundMovies);
        }
Example #7
0
        internal static IEnumerable <ProjectionDetailsModel> GetMoviesProjectionsDetails(int p1, int p2, int p3)
        {
            var projectionDetails =
                HttpRequester.Get <ProjectionDetailsModel>(BaseServicesUrl + "projections/" + p3);
            //I forget that it is not a collection
            var answer = new List <ProjectionDetailsModel>()
            {
                projectionDetails
            };

            return(answer);
        }