Android Open Source - AT-ST Series






From Project

Back to project page AT-ST.

License

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.

Java Source Code

/*
 * AT-ST. Android TV-Series Tracker.//from  www .  ja va  2s.  c o  m
 * 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 a series (see TVDB documentation)
 * 
 * @author Simon Levermann
 */
@JacksonXmlRootElement(localName = "Series")
@EqualsAndHashCode
@AllArgsConstructor(suppressConstructorProperties = true)
@NoArgsConstructor
@ToString
public class Series {

  /**
   * TVDB id of this series
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "id")
  private long id;

  /**
   * List of actors, separated by pipes (|)
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "Actors")
  private String actors;

  /**
   * Date this series was first aired
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "FirstAired")
  private Date firstAired;

  /**
   * IMDB id of this series
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "IMDB_ID")
  private String imdbId;

  /**
   * Plot outline of this series
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "Overview")
  private String overView;

  /**
   * Series ID. I don't know what the hell this is (yet)
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "SeriesID")
  private int seriesId;

  /**
   * Name of the series
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "SeriesName")
  private String name;

  /**
   * Path to the banner image for this series
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "banner")
  private String bannerPath;

  /**
   * UNIX-Time representing the last update on this series. Store as long for now, because Jackson assumes
   * milliseconds instead of seconds
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "lastupdated")
  private long lastUpdateTimeStamp;

  /**
   * List of genres for this series, separated by pipes
   */
  @Getter
  @Setter
  @JacksonXmlProperty(localName = "Genre")
  private String genres;
}




Java Source Code List

de.slevermann.at_st.at_st.activities.MainActivity.java
de.slevermann.at_st.at_st.data.Data.java
de.slevermann.at_st.at_st.data.Episode.java
de.slevermann.at_st.at_st.data.Series.java