Slide 8
Slide 8 text
πΠʔτͷཧΦϒδΣΫτ
ࠓ ੲ
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();
}
}