Back to project page AT-ST.
The source code is released under:
GNU General Public License
If you think the Android project AT-ST listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * AT-ST. Android TV-Series Tracker.// w w w . j av a2 s .com * Copyright (C) 2014 Simon Levermann * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ package de.slevermann.at_st.at_st.data; import java.util.Date; import lombok.AllArgsConstructor; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; /** * POJO to represent an episode (see TVDB documentation) * * @author Simon Levermann */ @JacksonXmlRootElement(localName = "Episode") @NoArgsConstructor @AllArgsConstructor(suppressConstructorProperties = true) @EqualsAndHashCode @ToString public class Episode { /** * TVDB id of this episode */ @Getter @Setter @JacksonXmlProperty(localName = "id") private long id; /** * Name of this episode */ @Getter @Setter @JacksonXmlProperty(localName = "EpisodeName") private String episodeName; /** * Number of this episode inside the season */ @Getter @Setter @JacksonXmlProperty(localName = "EpisodeNumber") private int episodeNumber; /** * Date this episode first aired */ @Getter @Setter @JacksonXmlProperty(localName = "FirstAired") private Date airDate; /** * Plot outline for this episode */ @Getter @Setter @JacksonXmlProperty(localName = "Overview") private String overview; /** * Season this episode belongs to */ @Getter @Setter @JacksonXmlProperty(localName = "SeasonNumber") private int season; /** * TVDB id of the season this episode belongs to */ @Getter @Setter @JacksonXmlProperty(localName = "seasonid") private long seasonId; /** * TVDB id of the series this episode belongs to */ @Getter @Setter @JacksonXmlProperty(localName = "seriesid") private long seriesId; /** * Path to the thumbnail image for this episode */ @Getter @Setter @JacksonXmlProperty(localName = "filename") private String thumbnailFileName; /** * Height of the thumbnail for this episode (px) */ @Getter @Setter @JacksonXmlProperty(localName = "thumb_height") private int thumbnailHeight; /** * Width of the thumbnail for this episode (px) */ @Getter @Setter @JacksonXmlProperty(localName = "thumb_width") private int thumbnailWidth; /** * UNIX-Time representing the last update on this episode. Store as long for now, because Jackson assumes * milliseconds instead of seconds */ @Getter @Setter @JacksonXmlProperty(localName = "lastupdated") private long lastUpdatedTimeStamp; /** * List of guest stars, separated by pipes */ @Getter @Setter @JacksonXmlProperty(localName = "GuestStars") private String guestStars; /** * IMDB id for this episode */ @Getter @Setter @JacksonXmlProperty(localName = "IMDB_ID") private String imdbId; /** * Writer(s) for this episode, separated by pipes */ @Getter @Setter @JacksonXmlProperty(localName = "Writer") private String writers; }