package de.metalmatze.krautreporter.models;

import java.util.Date;

public interface Article {

    Long getId();
    Long save();

    String getUuid();
    void setUuid(String uuid);

    String getTitle();
    void setTitle(String title);

    Date getDate();
    void setDate(Date date);

    String getLink();
    void setLink(String link);

    String getImage();
    void setImage(String image);

    String getExcerpt();
    void setExcerpt(String excerpt);

    String getContent();
    void setContent(String content);
}

package de.metalmatze.krautreporter.models;

import io.realm.RealmObject;
import io.realm.annotations.Index;
import io.realm.annotations.PrimaryKey;

public class Article extends RealmObject {

    @PrimaryKey
    private int id;

    private int order;

    private String title;

    private String headline;

    private String date;

    private boolean morgenpost;

    @Index
    private String url;

    private String image;

    private String excerpt;

    private String content;

    private int author;

    private String created_at;

    private String updated_at;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public boolean isMorgenpost() {
        return morgenpost;
    }

    public void setMorgenpost(boolean morgenpost) {
        this.morgenpost = morgenpost;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getExcerpt() {
        return excerpt;
    }

    public void setExcerpt(String excerpt) {
        this.excerpt = excerpt;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getAuthor() {
        return author;
    }

    public void setAuthor(int author) {
        this.author = author;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }
}

Create a Article extend RealmObject