Back to project page chat.android.
The source code is released under:
GNU General Public License
If you think the Android project chat.android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.chat.android.models; /* w w w. j a v a 2 s.c o m*/ import java.util.Date; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; /** * Created by colin */ @DatabaseTable(tableName = "health_pages") public class HealthPage { @DatabaseField(id = true) private int id; @DatabaseField private int topic_id; @DatabaseField private int page_number; @DatabaseField private String type; @DatabaseField private int page_content_id; @DatabaseField private Date created_at; @DatabaseField private Date modified_at; /** * Default Constructor needed by ormlite */ public HealthPage() { } /** * Constructor that instantiates the private member variable(s) * @param id * @param topic_id * @param page_number * @param type * @param page_content_id * @param created_at * @param modified_at */ public HealthPage(int id, int topic_id, int page_number, String type, int page_content_id, Date created_at, Date modified_at) { this.id = id; this.topic_id = topic_id; this.page_number = page_number; this.type = type; this.page_content_id = page_content_id; this.created_at = created_at; this.modified_at = modified_at; } /** * Copy constructor * @param existingListModel - List model instance that is copied to new instance */ // public HealthPage(HealthPage existingHealthPageModel) { // this.topic_id = existingHealthPageModel.topic_id; // this.page_number = existingHealthPageModel.page_number; // this.type = existingHealthPageModel.type; // this.page_content_id = existingHealthPageModel.page_content_id; // } public int getId() { return id; } public int getTopicId() { return topic_id; } public void setTopicId(int topic_id) { this.topic_id = topic_id; } public int getPageNumber() { return page_number; } public void setPageNumber(int page_number) { this.page_number = page_number; } public String getType() { return type; } public void setType(String type) { this.type = type; } public int getPageContentId() { return page_content_id; } public void setPageContentId(int page_content_id) { this.page_content_id = page_content_id; } }