Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Last active July 11, 2017 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myanmarlinks/509e823ca7ed777805602a42067c472c to your computer and use it in GitHub Desktop.
Save myanmarlinks/509e823ca7ed777805602a42067c472c to your computer and use it in GitHub Desktop.
Awesome Realm Android
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