package com.example.spartahack.spartahack2016.Model;

/**
 * Created by ryancasler on 12/22/15.
 */
public class PushNotification {
    public String message;
    public int type;
    public int id;
    public int pinned;
    public boolean isPinned(){return pinned != 0;}
}

@@ -47,16 +47,86 @@
 Model;%0A%0A
+import io.realm.RealmObject;%0Aimport io.realm.annotations.PrimaryKey;%0A%0A
 /**%0A * C
@@ -197,148 +197,1052 @@
 ion 
-%7B%0A    public String message;%0A    public int type;%0A    public int id;%0A    public int pinned;%0A    public boolean isPinned()%7Breturn pinned != 0
+extends RealmObject%7B%0A%0A    /** Full message of the push */%0A    private String message;%0A%0A    /** Title of the push */%0A    private String title;%0A%0A    /** Type of the push (announce, silent, update) */%0A    private int type;%0A%0A    /** Push id */%0A    @PrimaryKey%0A    private int id;%0A%0A    /** if the push should be pinned or not */%0A    private int pinned;%0A%0A    public String getMessage() %7B%0A        return message;%0A    %7D%0A%0A    public void setMessage(String message) %7B%0A        this.message = message;%0A    %7D%0A%0A    public int getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(int type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D%0A%0A    public int getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(int id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public int getPinned() %7B%0A        return pinned;%0A    %7D%0A%0A    public void setPinned(int pinned) %7B%0A        this.pinned = pinned;%0A    %7D%0A%0A    public int isPinned()%7Breturn pinned
 ;%7D%0A%7D

make push notification model realm comparable