Android Open Source - android-ocw Course Detail






From Project

Back to project page android-ocw.

License

The source code is released under:

GNU General Public License

If you think the Android project android-ocw 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 app.ocw.model;
//ww w .  ja  va2s.  co m
import java.util.ArrayList;
import java.util.List;

/**
 * Model for an OCW Course's Detail
 * 
 * @author Nick Ferraro
 *
 */
public class CourseDetail {
  private final int id;
  private final String linkhash;
  private final String title;
  private final String description;
  private final String tags;
  private final int provider;
  private final String providerName;
  private final String language;
  private final String datePublished;
  private final String linkUrl;
  private final String author;
  private final List<String> categories;
  
  public CourseDetail(int id, String linkhash, String title, String description, String tags, int provider, String providerName, String language, String datePublished, String linkUrl, String author) {
    this.id = id;
    this.linkhash = linkhash;
    this.title = title;
    this.description = description;
    this.tags = tags;
    this.provider = provider;
    this.providerName = providerName;
    this.language = language;
    this.datePublished = datePublished;
    this.linkUrl = linkUrl;
    this.author = author;
    this.categories = new ArrayList<String>();
  }

  public int getId() {
    return id;
  }

  public String getLinkhash() {
    return linkhash;
  }

  public String getTitle() {
    return title;
  }

  public String getDescription() {
    return description;
  }

  public String getTags() {
    return tags;
  }

  public int getProvider() {
    return provider;
  }

  public String getProviderName() {
    return providerName;
  }

  public String getLanguage() {
    return language;
  }

  public String getDatePublished() {
    return datePublished;
  }

  public String getLinkUrl() {
    return linkUrl;
  }

  public String getAuthor() {
    return author;
  }

  public List<String> getCategories() {
    return categories;
  }
}




Java Source Code List

app.ocw.CourseAdapter.java
app.ocw.CourseDetailActivity.java
app.ocw.CourseListActivity.java
app.ocw.CourseSearchActivity.java
app.ocw.api.CategoryListAPI.java
app.ocw.api.CourseSearchAPI.java
app.ocw.api.ProviderListAPI.java
app.ocw.model.Category.java
app.ocw.model.CourseDetail.java
app.ocw.model.Course.java
app.ocw.model.Provider.java
app.ocw.task.GetCategoryListTask.java
app.ocw.task.GetProviderListTask.java
app.ocw.task.SearchCoursesTask.java