Last active
September 27, 2015 02:01
-
-
Save numa08/dcd559383752de8d50f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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