File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
main/java/com/uwetrottmann/tmdb2/entities
test/java/com/uwetrottmann/tmdb2/assertions Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Change Log
44## Next version
55
66* Note: TMDB has added additional primary translation languages: ` ku-TR ` , ` so-SO ` and ` uz-UZ ` .
7+ * Add ` rent ` to ` WatchProviders.CountryInfo ` that contains rental providers for a movie.
78
89## 2.11.0
910_ 2024-06-07_
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class WatchProviders {
1212
1313 public Integer id ;
1414 /**
15- * Mapped by ISO 3166-1 two letter country code, e.g. DE and US.
15+ * Mapped by ISO 3166-1 two- letter country code, like DE and US.
1616 */
1717 @ Nonnull public Map <String , CountryInfo > results = new HashMap <>();
1818
@@ -27,6 +27,10 @@ public static class CountryInfo {
2727 @ Nonnull public java .util .List <WatchProvider > free = new ArrayList <>();
2828 @ Nonnull public java .util .List <WatchProvider > ads = new ArrayList <>();
2929 @ Nonnull public java .util .List <WatchProvider > buy = new ArrayList <>();
30+ /**
31+ * Only for movies.
32+ */
33+ @ Nonnull public java .util .List <WatchProvider > rent = new ArrayList <>();
3034
3135 }
3236
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public static void assertWatchProviderCountryInfo(WatchProviders.CountryInfo inf
5454 assertWatchProviders (info .free );
5555 assertWatchProviders (info .ads );
5656 assertWatchProviders (info .buy );
57+ assertWatchProviders (info .rent );
5758 }
5859
5960 private static void assertWatchProviders (List <WatchProviders .WatchProvider > providers ) {
You can’t perform that action at this time.
0 commit comments