Skip to content

Commit 2886729

Browse files
committed
rename package to uk.co.conoregan.themoviedbapi (#347)
1 parent dd4ab5e commit 2886729

308 files changed

Lines changed: 1508 additions & 1508 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It's available via [Maven Central](https://central.sonatype.com/artifact/uk.co.c
1414
## Usage
1515
To register for a TMdB API key, click the [API link](https://www.themoviedb.org/settings/api) from within your account settings page. There are two types of API keys currently provided by TMdB, please ensure you are using the `API Read Access Token` key.
1616

17-
With this you can instantiate `info.movito.themoviedbapi.TmdbApi`, which has getters for all subcategories of the API, e.g.
17+
With this you can instantiate `uk.co.conoregan.themoviedbapi.TmdbApi`, which has getters for all subcategories of the API, e.g.
1818
```java
1919
TmdbApi tmdbApi = new TmdbApi("<apikey>");
2020
```
@@ -55,15 +55,15 @@ MovieDb movie = tmdbMovies.getDetails(5353, "en-US", MovieAppendToResponse.IMAGE
5555
MovieDb movie = tmdbMovies.getDetails(5353, "en-US", MovieAppendToResponse.values());
5656
```
5757

58-
To find all methods that use append to response, see the `info.movito.themoviedbapi.tools.appendtoresponse.AppendToResponse` interface
58+
To find all methods that use append to response, see the `uk.co.conoregan.themoviedbapi.tools.appendtoresponse.AppendToResponse` interface
5959
implementations.
6060

6161
### Exception handling
62-
Every API method can throw a `info.movito.themoviedbapi.tools.TmdbException` if the request fails for any reason. You should catch this
62+
Every API method can throw a `uk.co.conoregan.themoviedbapi.tools.TmdbException` if the request fails for any reason. You should catch this
6363
exception and handle it appropriately.
6464

6565
Some exceptions are caused because the response status provided by the TMdB API is not successful. To see more details, see the
66-
`info.movito.themoviedbapi.tools.TmdbResponseCode` and [TMdB Errors](https://developer.themoviedb.org/docs/errors).
66+
`uk.co.conoregan.themoviedbapi.tools.TmdbResponseCode` and [TMdB Errors](https://developer.themoviedb.org/docs/errors).
6767

6868
In the example below, the response was successful, but response code returned by TMdB API was not successful due to an authentication
6969
failure.
@@ -87,13 +87,13 @@ We chose to throw exceptions rather than returning `null`, so you have more cont
8787
example above, you may want to display an error message to the user about failing authentication.
8888

8989
### Using your own HTTP client
90-
By default, `TmdbApi` uses the built-in `info.movito.themoviedbapi.tools.TmdbHttpClient`, which is backed by the JDK's
90+
By default, `TmdbApi` uses the built-in `uk.co.conoregan.themoviedbapi.tools.TmdbHttpClient`, which is backed by the JDK's
9191
`java.net.http.HttpClient`. If you would rather use a different HTTP client, you can provide your own
92-
implementation of the `info.movito.themoviedbapi.tools.TmdbRequestExecutor` interface.
92+
implementation of the `uk.co.conoregan.themoviedbapi.tools.TmdbRequestExecutor` interface.
9393

9494
Your implementation only has to make the call and hand back the raw response. If the request fails (e.g. an `IOException`), wrap it in a
95-
`info.movito.themoviedbapi.tools.TmdbException`. Interpreting TMdB status codes (e.g. mapping unsuccessful responses to exceptions) is handled by the library on top of your executor, so
96-
you do not need to deal with that (see `info.movito.themoviedbapi.tools.TmdbApiClient` for more information).
95+
`uk.co.conoregan.themoviedbapi.tools.TmdbException`. Interpreting TMdB status codes (e.g. mapping unsuccessful responses to exceptions) is handled by the library on top of your executor, so
96+
you do not need to deal with that (see `uk.co.conoregan.themoviedbapi.tools.TmdbApiClient` for more information).
9797

9898
Then, simply pass your implementation to `TmdbApi` instead of the API key:
9999
```java
@@ -106,10 +106,10 @@ This project uses [SLF4J](http://www.slf4j.org) to abstract the logging in the p
106106
project you should add one of the provided [adapter bindings](http://www.slf4j.org/manual.html).
107107

108108
## Prooguard / R8 rules
109-
Model classes are placed under `info.movito.themoviedbapi.model` package. Add this to `proguard-rules.pro` so that, these classes can
109+
Model classes are placed under `uk.co.conoregan.themoviedbapi.model` package. Add this to `proguard-rules.pro` so that, these classes can
110110
survive minification.
111111
```
112-
-keep class info.movito.themoviedbapi.model.** { *; }
112+
-keep class uk.co.conoregan.themoviedbapi.model.** { *; }
113113
```
114114

115115
## Notes & Acknowledgements

config/checkstyle/suppressions.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
55
<suppressions>
66
<!-- disable javadoc check in model package. The classes there are basically just data classes, so no need to document anything -->
7-
<suppress files="info.movito.themoviedbapi.model" checks="MissingJavadocType"/>
8-
<suppress files="info.movito.themoviedbapi.model" checks="JavadocMethod"/>
7+
<suppress files="uk.co.conoregan.themoviedbapi.model" checks="MissingJavadocType"/>
8+
<suppress files="uk.co.conoregan.themoviedbapi.model" checks="JavadocMethod"/>
99
<!-- disable javadoc check in builders package. The api documentation might change so better to look there for the most up-to-date information -->
10-
<suppress files="info.movito.themoviedbapi.tools.builders.discover" checks="JavadocMethod"/>
10+
<suppress files="uk.co.conoregan.themoviedbapi.tools.builders.discover" checks="JavadocMethod"/>
1111

12-
<suppress files="info.movito.themoviedbapi.tools.TmdbException" checks="JavadocMethod"/>
13-
<suppress files="info.movito.themoviedbapi.tools.TmdbException" checks="MissingJavadocMethod"/>
12+
<suppress files="uk.co.conoregan.themoviedbapi.tools.TmdbException" checks="JavadocMethod"/>
13+
<suppress files="uk.co.conoregan.themoviedbapi.tools.TmdbException" checks="MissingJavadocMethod"/>
1414
</suppressions>

src/main/java/info/movito/themoviedbapi/model/changes/ChangesResultsPage.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/companies/AlternativeNamesResultsPage.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/core/MovieDbResultsPage.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/core/multi/MultiResultsPage.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/core/popularperson/PopularPersonResultsPage.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/core/video/VideoResults.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/movies/MovieListResultsPage.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/info/movito/themoviedbapi/model/movies/ReleaseDateResults.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)