Last active
July 11, 2017 17:26
-
-
Save myanmarlinks/509e823ca7ed777805602a42067c472c to your computer and use it in GitHub Desktop.
Awesome Realm Android
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
package net.myanmarlinks.awesomerealm.model; | |
import io.realm.RealmObject; | |
/** | |
* Created by soethihanaung on 7/7/17. | |
*/ | |
public class Post extends RealmObject { | |
private String id; | |
private String title; | |
private Category category; | |
private Author author; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getTitle() { | |
return title; | |
} | |
public void setTitle(String title) { | |
this.title = title; | |
} | |
public Category getCategory() { | |
return category; | |
} | |
public void setCategory(Category category) { | |
this.category = category; | |
} | |
public Author getAuthor() { | |
return author; | |
} | |
public void setAuthor(Author author) { | |
this.author = author; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment