Android Open Source - android-animeinfo Anime






From Project

Back to project page android-animeinfo.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project android-animeinfo 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

package net.winterday.android.Model;
//from  w  w w.j  av  a  2 s . c o  m
import org.json.JSONException;
import org.json.JSONObject;

public class Anime {

  private int id;
  private String title;
  private String url;
  
  public Anime()
  {
    
  }
  
  public Anime(JSONObject source) throws Exception
  {
    title = source.getString("title");

    if (source.has("id"))
      id = source.getInt("id");
    else if (source.has("anime_id"))
      id = source.getInt("anime_id");
    
    if (source.has("url"))
      url = source.getString("url");
  }
  
  
  public int getId() {
    return id;
  }
  public void setId(int id) {
    this.id = id;
  }
  public String getTitle() {
    return title;
  }
  public void setTitle(String title) {
    this.title = title;
  }
  public String getUrl() {
    return url;
  }
  public void setUrl(String url) {
    this.url = url;
  }
  
  
  
}




Java Source Code List

net.winterday.android.Anime.DetailsActivity.java
net.winterday.android.Anime.SearchActivity.java
net.winterday.android.Anime.SearchResultsAdapter.java
net.winterday.android.Anime.Util.JSONFetcher.java
net.winterday.android.Model.AnimeFull.java
net.winterday.android.Model.AnimeSummary.java
net.winterday.android.Model.Anime.java