Search in sources :

Example 11 with Movie

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));
}
Also used : Movie(org.javaee7.movieplex7.entities.Movie)

Example 12 with Movie

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;
}
Also used : Movie(com.uwetrottmann.tmdb2.entities.Movie)

Example 13 with Movie

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;
}
Also used : Movie(com.uwetrottmann.tmdb2.entities.Movie)

Example 14 with Movie

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;
}
Also used : Movie(com.uwetrottmann.tmdb2.entities.Movie)

Example 15 with Movie

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);
}
Also used : ContentValues(android.content.ContentValues) Movie(com.uwetrottmann.tmdb2.entities.Movie) SgMovie(com.battlelancer.seriesguide.model.SgMovie) Date(java.util.Date) MovieDetails(com.battlelancer.seriesguide.ui.movies.MovieDetails)

Aggregations

Movie (com.uwetrottmann.tmdb2.entities.Movie)14 SyncMovie (com.uwetrottmann.trakt5.entities.SyncMovie)3 IOException (java.io.IOException)3 Nullable (androidx.annotation.Nullable)2 MovieDetails (com.battlelancer.seriesguide.ui.movies.MovieDetails)2 Comment (com.uwetrottmann.trakt5.entities.Comment)2 Episode (com.uwetrottmann.trakt5.entities.Episode)2 Movie (com.uwetrottmann.trakt5.entities.Movie)2 Ratings (com.uwetrottmann.trakt5.entities.Ratings)2 Show (com.uwetrottmann.trakt5.entities.Show)2 SyncEpisode (com.uwetrottmann.trakt5.entities.SyncEpisode)2 Movie (org.javaee7.movieplex7.entities.Movie)2 SuppressLint (android.annotation.SuppressLint)1 ContentValues (android.content.ContentValues)1 Intent (android.content.Intent)1 Cursor (android.database.Cursor)1 Bitmap (android.graphics.Bitmap)1 Nullable (android.support.annotation.Nullable)1 NestedScrollView (android.support.v4.widget.NestedScrollView)1 Palette (android.support.v7.graphics.Palette)1