com.uwetrottmann.trakt5.entities.MovieIds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trakt-java Show documentation
Show all versions of trakt-java Show documentation
trakt-java is a retrofit2 based wrapper around the trakt API v2.
package com.uwetrottmann.trakt5.entities;
public class MovieIds extends BaseIds {
public String slug;
public static MovieIds trakt(int trakt) {
MovieIds ids = new MovieIds();
ids.trakt = trakt;
return ids;
}
public static MovieIds imdb(String imdb) {
MovieIds ids = new MovieIds();
ids.imdb = imdb;
return ids;
}
public static MovieIds tmdb(int tmdb) {
MovieIds ids = new MovieIds();
ids.tmdb = tmdb;
return ids;
}
public static MovieIds slug(String slug) {
MovieIds ids = new MovieIds();
ids.slug = slug;
return ids;
}
}