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; //www.j av a2 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 = "videos") public class Video { @DatabaseField(id = true) private int id; @DatabaseField private String name; @DatabaseField() private String uri; @DatabaseField private String screenshot; @DatabaseField private Date created_at; @DatabaseField private Date modified_at; /** * Default Constructor needed by ormlite */ public Video() { } /** * Constructor that instantiates the private member variable(s) * @param id * @param name * @param uri * @param screenshot * */ public Video(int id, String name, String uri, String screenshot, Date created_at, Date modified_at) { this.id = id; this.name = name; this.uri = uri; 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 Video(Video existingVideosAccessedModel) { // this.id = existingVideosAccessedModel.id; // this.name = existingVideosAccessedModel.name; // this.uri = existingVideosAccessedModel.uri; // this.screenshot = existingVideosAccessedModel.screenshot; // } public int getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getURI() { return uri; } public void setURI(String uri) { this.uri = uri; } public String getScreenshot() { return screenshot; } public void setScreenshot(String screenshot) { this.screenshot = screenshot; } }