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.ja va2 s . c om*/ import java.util.Date; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; /** * Created by colin */ @DatabaseTable(tableName = "health_topics") public class HealthTopic { @DatabaseField(id = true, unique = true, index = true) private int id; @DatabaseField private String name; @DatabaseField private String theme; @DatabaseField private String screenshot; @DatabaseField private Date created_at; @DatabaseField private Date modified_at; /** * Default Constructor needed by ormlite */ public HealthTopic() { } /** * Constructor that instantiates the private member variable(s) * @param name * @param theme * @param created_at * @param modified_at */ public HealthTopic(int id, String name, String theme, String screenshot, Date created_at, Date modified_at) { this.id = id; this.name = name; this.theme = theme; this.screenshot = screenshot; this.created_at = created_at; this.modified_at = modified_at; } /** * Copy constructor * @param existingListModel - List model instance that is copied to new instance */ // public HealthTopic(HealthTopic existingHealthTopicModel) { // this.name = existingHealthTopicModel.name; // this.theme = existingHealthTopicModel.theme; // } public int getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTheme() { return theme; } public void setTheme(String theme) { this.theme = theme; } public String getScreenshot() { return screenshot; } public void setScreenshot(String screenshot) { this.screenshot = screenshot; } }