|
| 1 | +using System.Net; |
| 2 | + |
1 | 3 | namespace TraktNET |
2 | 4 | { |
3 | 5 | public static class TraktTMDBExtensions |
4 | 6 | { |
5 | | - public static async Task<TMDBMovieImages> GetTMDBImagesAsync(this TraktMovieMinimal traktMovie, CancellationToken cancellationToken = default) |
| 7 | + public static async Task<TMDBResponse<TMDBMovieImages>> GetTMDBImagesAsync(this TraktMovieMinimal traktMovie, CancellationToken cancellationToken = default) |
6 | 8 | { |
7 | 9 | // TODO |
8 | | - return await Task.FromResult(new TMDBMovieImages()); |
| 10 | + return await Task.FromResult(TMDBResponse<TMDBMovieImages>.Create(HttpStatusCode.OK, null, null, null)); |
9 | 11 | } |
10 | 12 |
|
11 | | - public static async Task<TMDBMovieImages> GetTMDBImagesAsync(this TraktMovie traktMovie, CancellationToken cancellationToken = default) |
| 13 | + public static async Task<TMDBResponse<TMDBMovieImages>> GetTMDBImagesAsync(this TraktMovie traktMovie, CancellationToken cancellationToken = default) |
12 | 14 | { |
13 | 15 | // TODO |
14 | | - return await Task.FromResult(new TMDBMovieImages()); |
| 16 | + return await Task.FromResult(TMDBResponse<TMDBMovieImages>.Create(HttpStatusCode.OK, null, null, null)); |
15 | 17 | } |
16 | 18 |
|
17 | | - public static async Task<TMDBShowImages> GetTMDBImagesAsync(this TraktShowMinimal traktShow, CancellationToken cancellationToken = default) |
| 19 | + public static async Task<TMDBResponse<TMDBShowImages>> GetTMDBImagesAsync(this TraktShowMinimal traktShow, CancellationToken cancellationToken = default) |
18 | 20 | { |
19 | 21 | // TODO |
20 | | - return await Task.FromResult(new TMDBShowImages()); |
| 22 | + return await Task.FromResult(TMDBResponse<TMDBShowImages>.Create(HttpStatusCode.OK, null, null, null)); |
21 | 23 | } |
22 | 24 |
|
23 | | - public static async Task<TMDBShowImages> GetTMDBImagesAsync(this TraktShow traktShow, CancellationToken cancellationToken = default) |
| 25 | + public static async Task<TMDBResponse<TMDBShowImages>> GetTMDBImagesAsync(this TraktShow traktShow, CancellationToken cancellationToken = default) |
24 | 26 | { |
25 | 27 | // TODO |
26 | | - return await Task.FromResult(new TMDBShowImages()); |
| 28 | + return await Task.FromResult(TMDBResponse<TMDBShowImages>.Create(HttpStatusCode.OK, null, null, null)); |
27 | 29 | } |
28 | 30 |
|
29 | | - public static async Task<TMDBSeasonImages> GetTMDBImagesAsync(this TraktSeasonMinimal traktSeason, CancellationToken cancellationToken = default) |
| 31 | + public static async Task<TMDBResponse<TMDBSeasonImages>> GetTMDBImagesAsync(this TraktSeasonMinimal traktSeason, CancellationToken cancellationToken = default) |
30 | 32 | { |
31 | 33 | // TODO |
32 | | - return await Task.FromResult(new TMDBSeasonImages()); |
| 34 | + return await Task.FromResult(TMDBResponse<TMDBSeasonImages>.Create(HttpStatusCode.OK, null, null, null)); |
33 | 35 | } |
34 | 36 |
|
35 | | - public static async Task<TMDBSeasonImages> GetTMDBImagesAsync(this TraktSeason traktSeason, CancellationToken cancellationToken = default) |
| 37 | + public static async Task<TMDBResponse<TMDBSeasonImages>> GetTMDBImagesAsync(this TraktSeason traktSeason, CancellationToken cancellationToken = default) |
36 | 38 | { |
37 | 39 | // TODO |
38 | | - return await Task.FromResult(new TMDBSeasonImages()); |
| 40 | + return await Task.FromResult(TMDBResponse<TMDBSeasonImages>.Create(HttpStatusCode.OK, null, null, null)); |
39 | 41 | } |
40 | 42 |
|
41 | | - public static async Task<TMDBEpisodeImages> GetTMDBImagesAsync(this TraktEpisodeMinimal traktEpisode, CancellationToken cancellationToken = default) |
| 43 | + public static async Task<TMDBResponse<TMDBEpisodeImages>> GetTMDBImagesAsync(this TraktEpisodeMinimal traktEpisode, CancellationToken cancellationToken = default) |
42 | 44 | { |
43 | 45 | // TODO |
44 | | - return await Task.FromResult(new TMDBEpisodeImages()); |
| 46 | + return await Task.FromResult(TMDBResponse<TMDBEpisodeImages>.Create(HttpStatusCode.OK, null, null, null)); |
45 | 47 | } |
46 | 48 |
|
47 | | - public static async Task<TMDBEpisodeImages> GetTMDBImagesAsync(this TraktEpisode traktEpisode, CancellationToken cancellationToken = default) |
| 49 | + public static async Task<TMDBResponse<TMDBEpisodeImages>> GetTMDBImagesAsync(this TraktEpisode traktEpisode, CancellationToken cancellationToken = default) |
48 | 50 | { |
49 | 51 | // TODO |
50 | | - return await Task.FromResult(new TMDBEpisodeImages()); |
| 52 | + return await Task.FromResult(TMDBResponse<TMDBEpisodeImages>.Create(HttpStatusCode.OK, null, null, null)); |
51 | 53 | } |
52 | 54 |
|
53 | | - public static async Task<TMDBPersonImages> GetTMDBImagesAsync(this TraktPersonMinimal traktPerson, CancellationToken cancellationToken = default) |
| 55 | + public static async Task<TMDBResponse<TMDBPersonImages>> GetTMDBImagesAsync(this TraktPersonMinimal traktPerson, CancellationToken cancellationToken = default) |
54 | 56 | { |
55 | 57 | // TODO |
56 | | - return await Task.FromResult(new TMDBPersonImages()); |
| 58 | + return await Task.FromResult(TMDBResponse<TMDBPersonImages>.Create(HttpStatusCode.OK, null, null, null)); |
57 | 59 | } |
58 | 60 |
|
59 | | - public static async Task<TMDBPersonImages> GetTMDBImagesAsync(this TraktPerson traktPerson, CancellationToken cancellationToken = default) |
| 61 | + public static async Task<TMDBResponse<TMDBPersonImages>> GetTMDBImagesAsync(this TraktPerson traktPerson, CancellationToken cancellationToken = default) |
60 | 62 | { |
61 | 63 | // TODO |
62 | | - return await Task.FromResult(new TMDBPersonImages()); |
| 64 | + return await Task.FromResult(TMDBResponse<TMDBPersonImages>.Create(HttpStatusCode.OK, null, null, null)); |
63 | 65 | } |
64 | 66 |
|
65 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktMovieMinimal traktMovie, CancellationToken cancellationToken = default) |
| 67 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktMovieMinimal traktMovie, CancellationToken cancellationToken = default) |
66 | 68 | { |
67 | 69 | // TODO |
68 | | - return await Task.FromResult(new TMDBVideos()); |
| 70 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
69 | 71 | } |
70 | 72 |
|
71 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktMovie traktMovie, CancellationToken cancellationToken = default) |
| 73 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktMovie traktMovie, CancellationToken cancellationToken = default) |
72 | 74 | { |
73 | 75 | // TODO |
74 | | - return await Task.FromResult(new TMDBVideos()); |
| 76 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
75 | 77 | } |
76 | 78 |
|
77 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktShowMinimal traktShow, CancellationToken cancellationToken = default) |
| 79 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktShowMinimal traktShow, CancellationToken cancellationToken = default) |
78 | 80 | { |
79 | 81 | // TODO |
80 | | - return await Task.FromResult(new TMDBVideos()); |
| 82 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
81 | 83 | } |
82 | 84 |
|
83 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktShow traktShow, CancellationToken cancellationToken = default) |
| 85 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktShow traktShow, CancellationToken cancellationToken = default) |
84 | 86 | { |
85 | 87 | // TODO |
86 | | - return await Task.FromResult(new TMDBVideos()); |
| 88 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
87 | 89 | } |
88 | 90 |
|
89 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktSeasonMinimal traktSeason, CancellationToken cancellationToken = default) |
| 91 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktSeasonMinimal traktSeason, CancellationToken cancellationToken = default) |
90 | 92 | { |
91 | 93 | // TODO |
92 | | - return await Task.FromResult(new TMDBVideos()); |
| 94 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
93 | 95 | } |
94 | 96 |
|
95 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktSeason traktSeason, CancellationToken cancellationToken = default) |
| 97 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktSeason traktSeason, CancellationToken cancellationToken = default) |
96 | 98 | { |
97 | 99 | // TODO |
98 | | - return await Task.FromResult(new TMDBVideos()); |
| 100 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
99 | 101 | } |
100 | 102 |
|
101 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktEpisodeMinimal traktEpisode, CancellationToken cancellationToken = default) |
| 103 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktEpisodeMinimal traktEpisode, CancellationToken cancellationToken = default) |
102 | 104 | { |
103 | 105 | // TODO |
104 | | - return await Task.FromResult(new TMDBVideos()); |
| 106 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
105 | 107 | } |
106 | 108 |
|
107 | | - public static async Task<TMDBVideos> GetTMDBVideosAsync(this TraktEpisode traktEpisode, CancellationToken cancellationToken = default) |
| 109 | + public static async Task<TMDBResponse<TMDBVideos>> GetTMDBVideosAsync(this TraktEpisode traktEpisode, CancellationToken cancellationToken = default) |
108 | 110 | { |
109 | 111 | // TODO |
110 | | - return await Task.FromResult(new TMDBVideos()); |
| 112 | + return await Task.FromResult(TMDBResponse<TMDBVideos>.Create(HttpStatusCode.OK, null, null, null)); |
111 | 113 | } |
112 | 114 | } |
113 | 115 | } |
0 commit comments