com.uwetrottmann.trakt5.entities.SyncSeason 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 com.uwetrottmann.trakt5.enums.Rating;
import org.threeten.bp.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
public class SyncSeason {
public Integer number;
public List episodes;
public OffsetDateTime collected_at;
public OffsetDateTime watched_at;
public OffsetDateTime rated_at;
public Rating rating;
public SyncSeason number(int number) {
this.number = number;
return this;
}
public SyncSeason episodes(List episodes) {
this.episodes = episodes;
return this;
}
public SyncSeason episodes(SyncEpisode episode) {
ArrayList list = new ArrayList<>(1);
list.add(episode);
return episodes(list);
}
public SyncSeason collectedAt(OffsetDateTime collectedAt) {
this.collected_at = collectedAt;
return this;
}
public SyncSeason watchedAt(OffsetDateTime watchedAt) {
this.watched_at = watchedAt;
return this;
}
public SyncSeason ratedAt(OffsetDateTime ratedAt) {
this.rated_at = ratedAt;
return this;
}
public SyncSeason rating(Rating rating) {
this.rating = rating;
return this;
}
}