Skip to content

Instantly share code, notes, and snippets.

@lifeisfoo
Created April 13, 2015 08:05
Show Gist options
  • Save lifeisfoo/27bee58f58b0beca7994 to your computer and use it in GitHub Desktop.
Save lifeisfoo/27bee58f58b0beca7994 to your computer and use it in GitHub Desktop.
LogModel for logging in android and sqlite
package com.example.alessandro.sqlitetest;
public class LogModel {
private int id;
private int created;
private String content;
public LogModel(){}
public LogModel(String content) {
super();
this.content = content;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getCreated() {
return created;
}
public void setCreated(int created) {
this.created = created;
}
@Override
public String toString() {
return "Log [id=" + id + ", created=" + created + ", content=" + content + "]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment