You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.keylesspalace.tusky.db;
|
|
|
|
|
|
|
|
import android.arch.persistence.room.ColumnInfo;
|
|
|
|
import android.arch.persistence.room.Entity;
|
|
|
|
import android.arch.persistence.room.PrimaryKey;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* toot model
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
public class TootEntity {
|
|
|
|
@PrimaryKey(autoGenerate = true)
|
|
|
|
private int uid;
|
|
|
|
|
|
|
|
@ColumnInfo(name = "text")
|
|
|
|
private String text;
|
|
|
|
|
|
|
|
// getter setter
|
|
|
|
public String getText() {
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setText(String text) {
|
|
|
|
this.text = text;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getUid() {
|
|
|
|
return uid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUid(int uid) {
|
|
|
|
this.uid = uid;
|
|
|
|
}
|
|
|
|
}
|