use of org.javaee7.movieplex7.entities.Movie in project javaee7-firstcup by ecabrerar.
the class MovieClientBean method addMovie.
public void addMovie() {
Movie m = new Movie();
m.setId(bean.getMovieId());
m.setName(bean.getMovieName());
m.setActors(bean.getActors());
target.register(MovieWriter.class).request().post(Entity.entity(m, MediaType.APPLICATION_JSON));
}
use of org.javaee7.movieplex7.entities.Movie in project nzbhydra2 by theotherp.
the class TmdbHandler method fromTitle.
TmdbSearchResult fromTitle(String title, Integer year) throws InfoProviderException {
Movie movie = getMovieByTitle(title, year);
TmdbSearchResult result = getSearchResultFromMovie(movie);
return result;
}
use of org.javaee7.movieplex7.entities.Movie in project nzbhydra2 by theotherp.
the class TmdbHandler method fromTmdb.
private TmdbSearchResult fromTmdb(String imdbId) throws InfoProviderException {
Movie movie = getMovieByTmdbId(imdbId);
TmdbSearchResult result = getSearchResultFromMovie(movie);
return result;
}
use of org.javaee7.movieplex7.entities.Movie in project nzbhydra2 by theotherp.
the class TmdbHandler method fromImdb.
private TmdbSearchResult fromImdb(String imdbId) throws InfoProviderException {
Movie movie = getMovieByImdbId(imdbId);
TmdbSearchResult result = getSearchResultFromMovie(movie);
return result;
}
use of org.javaee7.movieplex7.entities.Movie in project SeriesGuide by UweTrottmann.
the class TmdbSyncTest method insertMovie.
private void insertMovie(int tmdbId, long releaseDateMs, Long lastUpdatedMs) {
Movie movie = new Movie();
movie.id = tmdbId;
movie.release_date = new Date(releaseDateMs);
MovieDetails details = new MovieDetails();
details.setInCollection(true);
details.setInWatchlist(true);
details.tmdbMovie(movie);
ContentValues values = details.toContentValuesInsert();
if (lastUpdatedMs == null) {
values.remove(Movies.LAST_UPDATED);
} else {
values.put(Movies.LAST_UPDATED, lastUpdatedMs);
}
resolver.insert(Movies.CONTENT_URI, values);
}
Aggregations