Skip to content

Commit 3add9eb

Browse files
committed
MoviesService: fix API docs syntax at least a little
1 parent 21167af commit 3add9eb

File tree

2 files changed

+44
-41
lines changed

2 files changed

+44
-41
lines changed

.idea/codeStyles/Project.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/uwetrottmann/tmdb2/services/MoviesService.java

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public interface MoviesService {
3838
/**
3939
* Get the basic movie information for a specific movie id.
4040
*
41-
* @param movieId A Movie TMDb id.
41+
* @param movieId A Movie TMDb id.
4242
* @param language <em>Optional.</em> ISO 639-1 code.
4343
*/
4444
@GET("movie/{movie_id}")
@@ -50,9 +50,11 @@ Call<Movie> summary(
5050
/**
5151
* Get the basic movie information for a specific movie id.
5252
*
53-
* @param movieId A Movie TMDb id.
54-
* @param language <em>Optional.</em> ISO 639-1 code.
55-
* @param appendToResponse <em>Optional.</em> extra requests to append to the result. <b>Accepted Value(s):</b> alternative_titles, changes, credits, images, keywords, release_dates, videos, translations, recommendations, similar, reviews, lists
53+
* @param movieId A Movie TMDb id.
54+
* @param language <em>Optional.</em> ISO 639-1 code.
55+
* @param appendToResponse <em>Optional.</em> extra requests to append to the result. <b>Accepted Value(s):</b>
56+
* alternative_titles, changes, credits, images, keywords, release_dates, videos, translations, recommendations,
57+
* similar, reviews, lists
5658
*/
5759
@GET("movie/{movie_id}")
5860
Call<Movie> summary(
@@ -64,10 +66,12 @@ Call<Movie> summary(
6466
/**
6567
* Get the basic movie information for a specific movie id.
6668
*
67-
* @param movieId A Movie TMDb id.
68-
* @param language <em>Optional.</em> ISO 639-1 code.
69-
* @param appendToResponse <em>Optional.</em> extra requests to append to the result. <b>Accepted Value(s):</b> alternative_titles, changes, credits, images, keywords, release_dates, videos, translations, recommendations, similar, reviews, lists
70-
* @param options <em>Optional.</em> parameters for the appended extra results.
69+
* @param movieId A Movie TMDb id.
70+
* @param language <em>Optional.</em> ISO 639-1 code.
71+
* @param appendToResponse <em>Optional.</em> extra requests to append to the result. <b>Accepted Value(s):</b>
72+
* alternative_titles, changes, credits, images, keywords, release_dates, videos, translations, recommendations,
73+
* similar, reviews, lists
74+
* @param options <em>Optional.</em> parameters for the appended extra results.
7175
*/
7276
@GET("movie/{movie_id}")
7377
Call<Movie> summary(
@@ -80,9 +84,9 @@ Call<Movie> summary(
8084
/**
8185
* Grab the following account states for a session:
8286
*
83-
* * Movie rating
84-
* * If it belongs to your watchlist
85-
* * If it belongs to your favorite list
87+
* <li>Movie rating</li>
88+
* <li>If it belongs to your watchlist</li>
89+
* <li>If it belongs to your favorite list</li>
8690
*
8791
* <b>Requires an active Session.</b>
8892
*
@@ -110,10 +114,10 @@ Call<AlternativeTitles> alternativeTitles(
110114
* <p>
111115
* You can query up to 14 days in a single query by using the start_date and end_date query parameters.
112116
*
113-
* @param movieId A Movie TMDb id.
117+
* @param movieId A Movie TMDb id.
114118
* @param start_date <em>Optional.</em> Starting date of changes occurred to a movie.
115-
* @param end_date <em>Optional.</em> Ending date of changes occurred to a movie.
116-
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
119+
* @param end_date <em>Optional.</em> Ending date of changes occurred to a movie.
120+
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
117121
*/
118122
@GET("movie/{movie_id}/changes")
119123
Call<Changes> changes(
@@ -156,7 +160,7 @@ Call<MovieExternalIds> externalIds(
156160
/**
157161
* Get the images (posters and backdrops) for a specific movie id.
158162
*
159-
* @param movieId A Movie TMDb id.
163+
* @param movieId A Movie TMDb id.
160164
* @param language <em>Optional.</em> ISO 639-1 code.
161165
*/
162166
@GET("movie/{movie_id}/images")
@@ -178,8 +182,8 @@ Call<Keywords> keywords(
178182
/**
179183
* Get the lists that the movie belongs to.
180184
*
181-
* @param movieId A Movie TMDb id.
182-
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
185+
* @param movieId A Movie TMDb id.
186+
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
183187
* @param language <em>Optional.</em> ISO 639-1 code.
184188
*/
185189
@GET("movie/{movie_id}/lists")
@@ -192,8 +196,8 @@ Call<ListResultsPage> lists(
192196
/**
193197
* Get the similar movies for a specific movie id.
194198
*
195-
* @param movieId A Movie TMDb id.
196-
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
199+
* @param movieId A Movie TMDb id.
200+
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
197201
* @param language <em>Optional.</em> ISO 639-1 code.
198202
*/
199203
@GET("movie/{movie_id}/similar")
@@ -206,8 +210,8 @@ Call<MovieResultsPage> similar(
206210
/**
207211
* Get the recommendations for a particular movie id.
208212
*
209-
* @param movieId A Movie TMDb id.
210-
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
213+
* @param movieId A Movie TMDb id.
214+
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
211215
* @param language <em>Optional.</em> ISO 639-1 code.
212216
*/
213217
@GET("movie/{movie_id}/recommendations")
@@ -219,7 +223,7 @@ Call<MovieResultsPage> recommendations(
219223

220224
/**
221225
* Get the release dates, certifications and related information by country for a specific movie id.
222-
*
226+
* <p>
223227
* The results are keyed by iso_3166_1 code and contain a type value which on our system, maps to:
224228
* {@link ReleaseDate#TYPE_PREMIERE}, {@link ReleaseDate#TYPE_THEATRICAL_LIMITED},
225229
* {@link ReleaseDate#TYPE_THEATRICAL}, {@link ReleaseDate#TYPE_DIGITAL}, {@link ReleaseDate#TYPE_PHYSICAL},
@@ -235,8 +239,8 @@ Call<ReleaseDatesResults> releaseDates(
235239
/**
236240
* Get the reviews for a particular movie id.
237241
*
238-
* @param movieId A Movie TMDb id.
239-
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
242+
* @param movieId A Movie TMDb id.
243+
* @param page <em>Optional.</em> Minimum value is 1, expected value is an integer.
240244
* @param language <em>Optional.</em> ISO 639-1 code.
241245
*/
242246
@GET("movie/{movie_id}/reviews")
@@ -259,7 +263,7 @@ Call<Translations> translations(
259263
/**
260264
* Get the videos (trailers, teasers, clips, etc...) for a specific movie id.
261265
*
262-
* @param movieId A Movie TMDb id.
266+
* @param movieId A Movie TMDb id.
263267
* @param language <em>Optional.</em> ISO 639-1 code.
264268
*/
265269
@GET("movie/{movie_id}/videos")
@@ -270,7 +274,7 @@ Call<Videos> videos(
270274

271275
/**
272276
* Get a list of the availabilities per country by provider.
273-
*
277+
* <p>
274278
* Please note: In order to use this data you must attribute the source of the data as JustWatch.
275279
*
276280
* @see <a href="https://developers.themoviedb.org/3/movies/get-movie-watch-providers">Documentation</a>
@@ -287,11 +291,11 @@ Call<WatchProviders> watchProviders(
287291
Call<Movie> latest();
288292

289293
/**
290-
* Get a list of movies in theatres. This is a release type query that looks
291-
* for all movies that have a release type of 2 or 3 within the specified date range.
292-
*
293-
* You can optionally specify a region parameter which will narrow the search
294-
* to only look for theatrical release dates within the specified country.
294+
* Get a list of movies in theatres. This is a release type query that looks for all movies that have a release type
295+
* of 2 or 3 within the specified date range.
296+
* <p>
297+
* You can optionally specify a region parameter which will narrow the search to only look for theatrical release
298+
* dates within the specified country.
295299
*
296300
* @see <a href="https://developers.themoviedb.org/3/movies/get-now-playing">Documentation</a>
297301
*/
@@ -327,11 +331,11 @@ Call<MovieResultsPage> topRated(
327331
);
328332

329333
/**
330-
* Get a list of upcoming movies in theatres. This is a release type query that looks
331-
* for all movies that have a release type of 2 or 3 within the specified date range.
332-
*
333-
* You can optionally specify a region prameter which will narrow the search to
334-
* only look for theatrical release dates within the specified country.
334+
* Get a list of upcoming movies in theatres. This is a release type query that looks for all movies that have a
335+
* release type of 2 or 3 within the specified date range.
336+
* <p>
337+
* You can optionally specify a region prameter which will narrow the search to only look for theatrical release
338+
* dates within the specified country.
335339
*
336340
* @see <a href="https://developers.themoviedb.org/3/movies/get-upcoming">Documentation</a>
337341
*/
@@ -344,11 +348,12 @@ Call<MovieResultsPage> upcoming(
344348

345349
/**
346350
* Sets the Rating for the movie with the specified id.
347-
*
351+
* <p>
348352
* <b>Requires an active Session.</b>
349353
*
350354
* @param movieId A Movie TMDb id.
351-
* @param body <em>Required.</em> A ReviewObject Object. Minimum value is 0.5 and Maximum 10.0, expected value is a number.
355+
* @param body <em>Required.</em> A ReviewObject Object. Minimum value is 0.5 and Maximum 10.0, expected value is a
356+
* number.
352357
*/
353358
@POST("movie/{movie_id}/rating")
354359
Call<Status> addRating(
@@ -358,7 +363,7 @@ Call<Status> addRating(
358363

359364
/**
360365
* Deletes the Rating for the movie with the specified id.
361-
*
366+
* <p>
362367
* <b>Requires an active Session.</b>
363368
*
364369
* @param movieId A Movie TMDb id.

0 commit comments

Comments
 (0)