-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathIApiMovieRequest.cs
80 lines (70 loc) · 5.3 KB
/
IApiMovieRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
namespace DM.MovieApi.MovieDb.Movies;
/// <summary>
/// Interface for retrieving information about Movies.
/// </summary>
public interface IApiMovieRequest : IApiRequest
{
/// <summary>
/// Gets all the information about a specific Movie.
/// </summary>
/// <param name="movieId">The movie Id is typically found from a more generic Movie query.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiQueryResponse<Movie>> FindByIdAsync( int movieId, string language = "en" );
/// <summary>
/// Searches for Movies by title.
/// </summary>
/// <param name="query">The query to search for Movies.</param>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<MovieInfo>> SearchByTitleAsync( string query, int pageNumber = 1, string language = "en" );
/// <summary>
/// Gets the most recent movie that has been added to TheMovieDb.org.
/// </summary>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiQueryResponse<Movie>> GetLatestAsync( string language = "en" );
/// <summary>
/// Gets the list of movies playing that have been, or are being released this week.
/// </summary>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<Movie>> GetNowPlayingAsync( int pageNumber = 1, string language = "en" );
/// <summary>
/// Gets the list of upcoming movies by release date.
/// </summary>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<Movie>> GetUpcomingAsync( int pageNumber = 1, string language = "en" );
/// <summary>
/// Gets the list of top rated movies which is refreshed daily.
/// </summary>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<MovieInfo>> GetTopRatedAsync( int pageNumber = 1, string language = "en" );
/// <summary>
/// Gets the list of popular movies which is refreshed daily.
/// </summary>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<MovieInfo>> GetPopularAsync( int pageNumber = 1, string language = "en" );
/// <summary>
/// Get the cast and crew information for a specific movie id.
/// </summary>
/// <param name="movieId">The movie Id is typically found from a more generic Movie query.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiQueryResponse<MovieCredit>> GetCreditsAsync( int movieId, string language = "en" );
/// <summary>
/// Get a list of recommended movies for a movie.
/// </summary>
/// <param name="movieId">The movie Id is typically found from a more generic Movie query.</param>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<MovieInfo>> GetRecommendationsAsync( int movieId, int pageNumber = 1, string language = "en" );
/// <summary>
/// Get a list of similar movies. This is not the same as the "Recommendation" system you see on the website.
/// These items are assembled by looking at keywords and genres.
///</summary>
/// <param name="movieId">The movie Id is typically found from a more generic Movie query.</param>
/// <param name="pageNumber">Default is page 1. The page number to retrieve; the <see cref="ApiSearchResponse{T}"/> will contain the current page returned and the total number of pages available.</param>
/// <param name="language">Default is English. The ISO 639-1 language code to retrieve the result from.</param>
Task<ApiSearchResponse<MovieInfo>> GetSimilarAsync( int movieId, int pageNumber = 1, string language = "en" );
}