@@ -5,35 +5,133 @@ namespace OMDbApiNet
55{
66 public interface IAsyncOmdbClient
77 {
8+ /// <summary>
9+ /// Get an Item by its title asynchronously.
10+ /// </summary>
11+ /// <param name="title"></param>
12+ /// <param name="fullPlot"></param>
13+ /// <returns>Item</returns>
814 Task < Item > GetItemByTitleAsync ( string title , bool fullPlot = false ) ;
915
16+ /// <summary>
17+ /// Get an Item by its title asynchronously.
18+ /// <br/><br/>
19+ /// Games (OmdbType.Game) can only be requested by Id, not by title. This is due to restrictions of the Open Movie Database API and can't be fixed on
20+ /// the client side.
21+ /// </summary>
22+ /// <param name="title"></param>
23+ /// <param name="type"></param>
24+ /// <param name="fullPlot"></param>
25+ /// <returns>Item</returns>
1026 Task < Item > GetItemByTitleAsync ( string title , OmdbType type , bool fullPlot = false ) ;
1127
28+ /// <summary>
29+ /// Get an Item by its title asynchronously.
30+ /// </summary>
31+ /// <param name="title"></param>
32+ /// <param name="year"></param>
33+ /// <param name="fullPlot"></param>
34+ /// <returns>Item</returns>
1235 Task < Item > GetItemByTitleAsync ( string title , int ? year , bool fullPlot = false ) ;
1336
37+ /// <summary>
38+ /// Get an Item by its title asynchronously.
39+ /// <br/><br/>
40+ /// Games (OmdbType.Game) can only be requested by Id, not by title. This is due to restrictions of the Open Movie Database API and can't be fixed on
41+ /// the client side.
42+ /// </summary>
43+ /// <param name="title"></param>
44+ /// <param name="type"></param>
45+ /// <param name="year"></param>
46+ /// <param name="fullPlot"></param>
47+ /// <returns>Item</returns>
1448 Task < Item > GetItemByTitleAsync ( string title , OmdbType type , int ? year , bool fullPlot = false ) ;
1549
50+ /// <summary>
51+ /// Get an Item by its IMDb id asynchronously.
52+ /// </summary>
53+ /// <param name="id"></param>
54+ /// <param name="fullPlot"></param>
55+ /// <returns>Item</returns>
1656 Task < Item > GetItemByIdAsync ( string id , bool fullPlot = false ) ;
1757
1858
59+ /// <summary>
60+ /// Get a list with search results for the given query asynchronously.
61+ /// </summary>
62+ /// <param name="query"></param>
63+ /// <param name="page"></param>
64+ /// <returns>SearchList</returns>
1965 Task < SearchList > GetSearchListAsync ( string query , int page = 1 ) ;
2066
67+ /// <summary>
68+ /// Get a list with search results for the given query and type asynchronously.
69+ /// </summary>
70+ /// <param name="query"></param>
71+ /// <param name="type"></param>
72+ /// <param name="page"></param>
73+ /// <returns>SearchList</returns>
2174 Task < SearchList > GetSearchListAsync ( string query , OmdbType type , int page = 1 ) ;
2275
76+ /// <summary>
77+ /// Get a list with search results for the given year and query asynchronously.
78+ /// </summary>
79+ /// <param name="year"></param>
80+ /// <param name="query"></param>
81+ /// <param name="page"></param>
82+ /// <returns>SearchList</returns>
2383 Task < SearchList > GetSearchListAsync ( int ? year , string query , int page = 1 ) ;
2484
85+ /// <summary>
86+ /// Get a list with search results for the given year, query and type asynchronously.
87+ /// </summary>
88+ /// <param name="year"></param>
89+ /// <param name="query"></param>
90+ /// <param name="type"></param>
91+ /// <param name="page"></param>
2592 Task < SearchList > GetSearchListAsync ( int ? year , string query , OmdbType type , int page = 1 ) ;
2693
2794
95+ /// <summary>
96+ /// Get an Episode by the IMDb id of the series, its season number and its episode number asynchronously.
97+ /// </summary>
98+ /// <param name="seriesId"></param>
99+ /// <param name="seasonNumber"></param>
100+ /// <param name="episodeNumber"></param>
101+ /// <returns>Episode</returns>
28102 Task < Episode > GetEpisodeBySeriesIdAsync ( string seriesId , int seasonNumber , int episodeNumber ) ;
29103
104+ /// <summary>
105+ /// Get an Episode by the name of the series, its season number and its episode number asynchronously.
106+ /// </summary>
107+ /// <param name="seriesTitle"></param>
108+ /// <param name="seasonNumber"></param>
109+ /// <param name="episodeNumber"></param>
110+ /// <returns>Episode</returns>
30111 Task < Episode > GetEpisodeBySeriesTitleAsync ( string seriesTitle , int seasonNumber , int episodeNumber ) ;
31112
113+ /// <summary>
114+ /// Get an Episode by its IMDb id asynchronously.
115+ /// </summary>
116+ /// <param name="episodeId"></param>
117+ /// <returns>Episode</returns>
32118 Task < Episode > GetEpisodeByEpisodeIdAsync ( string episodeId ) ;
33119
34120
121+ /// <summary>
122+ /// Get a Season by the IMDb id of the series and its season number asynchronously.
123+ /// </summary>
124+ /// <param name="seriesId"></param>
125+ /// <param name="seasonNumber"></param>
126+ /// <returns>Season</returns>
35127 Task < Season > GetSeasonBySeriesIdAsync ( string seriesId , int seasonNumber ) ;
36128
129+ /// <summary>
130+ /// Get a Season by the name of the series and its season number asynchronously.
131+ /// </summary>
132+ /// <param name="seriesTitle"></param>
133+ /// <param name="seasonNumber"></param>
134+ /// <returns>Season</returns>
37135 Task < Season > GetSeasonBySeriesTitleAsync ( string seriesTitle , int seasonNumber ) ;
38136 }
39137}
0 commit comments