Android Open Source - android-ocw Provider






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;
//w  ww. ja  v a 2s . c  o  m
/**
 * Model for an OCW Provider
 * 
 * @author Nick Ferraro
 *
 */
public class Provider {
  private final int id;
  private final String name;
  private final String externalId;
  
  public Provider(int id, String name, String externalId) {
    this.id = id;
    this.name = (name == null ? "no-name" : name);
    this.externalId = externalId;
  }
  
  public int getId() {
    return this.id;
  }
  public String getName() {
    return this.name;
  }
  public String getExternalId() {
    return this.externalId;
  }
  
  @Override
  public String toString() {
    return this.name;
  }
}




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