Last active
July 11, 2017 17:23
-
-
Save myanmarlinks/1315b70d5170c13b0aabcf90786dbbca to your computer and use it in GitHub Desktop.
Awesome Realm - Post
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; | |
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