Пример #1
0
 /// <summary>
 /// Returns list of titles by popularity.
 /// </summary>
 /// <param name="request">Container for the necessary parameters to execute the <see cref="GetPopularAsync(GetPopularRequest)"/> method.</param>
 /// <returns>The response from the Popular API.</returns>
 public async Task <GetPopularResponse> GetPopularAsync(GetPopularRequest request)
 {
     return(await this.ApiRequestAsync <GetPopularResponse>(request));
 }
Пример #2
0
        /*
         * public string GetMovieShowtimes()
         * {
         *  // https://apis.justwatch.com/content/titles/movie/207121/showtimes?date=2018-04-08&latitude=33.9772015&longitude=-118.1963514&radius=20000
         *  throw new NotImplementedException();
         *  // TODO: Popular endpoint also has additional monetization option for cinema to know what titles are in theaters. Add to GetPopular API? Separate service?
         * }
         *
         * public string GetNewestEpisodes()
         * {
         *  throw new NotImplementedException();
         * }
         */

        /// <summary>
        /// Returns list of titles by popularity.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the <see cref="GetPopular(GetPopularRequest)"/> method.</param>
        /// <returns>The response from the Popular API.</returns>
        public GetPopularResponse GetPopular(GetPopularRequest request)
        {
            return(this.ApiRequest <GetPopularResponse>(request));
        }