Skip to content

Instantly share code, notes, and snippets.

@numa08
Last active September 27, 2015 02:01
Show Gist options
  • Save numa08/dcd559383752de8d50f0 to your computer and use it in GitHub Desktop.
Save numa08/dcd559383752de8d50f0 to your computer and use it in GitHub Desktop.
class Tweet extends RealmObject {
String text;
Date createAt;
String userName;
public Tweet(){}
public Tweet(String text, Date createAt, String userName){
this.text = text;
this.createAt = createAt;
this.userName = userName;
}
}
class Tweet implements Content {
String text;
Date createAt;
String userName;
// RealmTweet extends RealmObject
public Tweet(RealmTweet obj){
this.text = obj.getText();
this.createAt = obj.getCreateAt();
this.userName = obj.getUserName();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment