Skip to content

Instantly share code, notes, and snippets.

@myanmarlinks
Last active Jul 11, 2017
Embed
What would you like to do?
Awesome Realm - Author
package net.myanmarlinks.awesomerealm.model;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by soethihanaung on 7/7/17.
*/
public class Author extends RealmObject {
@PrimaryKey
String id;
String name;
public Author() {
}
public Author(String id, String name) {
this.id = id;
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment