Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Last active Jul 11, 2017
Embed
What would you like to do?
Awesome Realm - Post
package net.myanmarlinks.awesomerealm.model;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by soethihanaung on 7/7/17.
*/
public class Post extends RealmObject {
@PrimaryKey
private int id;
private String title;
private Category category;
private Author author;
public int getId() {
return id;
}
public void setId(int 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