com.uwetrottmann.trakt5.entities.SyncItems 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;
import java.util.ArrayList;
import java.util.List;
public class SyncItems {
public List movies;
public List shows;
public List episodes;
/**
* Only supported for removing specific history items.
*/
public List ids;
public SyncItems movies(SyncMovie movie) {
ArrayList list = new ArrayList<>(1);
list.add(movie);
return movies(list);
}
public SyncItems movies(List movies) {
this.movies = movies;
return this;
}
public SyncItems shows(SyncShow show) {
ArrayList list = new ArrayList<>(1);
list.add(show);
return shows(list);
}
public SyncItems shows(List shows) {
this.shows = shows;
return this;
}
public SyncItems episodes(SyncEpisode episode) {
ArrayList list = new ArrayList<>(1);
list.add(episode);
return episodes(list);
}
public SyncItems episodes(List episodes) {
this.episodes = episodes;
return this;
}
/**
* @deprecated use {@link #ids(long)} instead
*/
@Deprecated
public SyncItems ids(int id) {
return ids((long) id);
}
/**
* History id to be removed.
*/
public SyncItems ids(long id) {
ArrayList list = new ArrayList<>(1);
list.add(id);
return ids(list);
}
/**
* History ids to be removed.
*/
public SyncItems ids(List ids) {
this.ids = ids;
return this;
}
}