package it.near.sdk.Reactions.SimpleNotification;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by cattaneostefano on 07/10/2016.
 */

public class SimpleNotification implements Parcelable {

    String notificationMessage;
    String notificationTitle;

    public SimpleNotification(String notificationMessage, String notificationTitle) {
        this.notificationMessage = notificationMessage;
        this.notificationTitle = notificationTitle;
    }

    protected SimpleNotification(Parcel in) {
        notificationMessage = in.readString();
        notificationTitle = in.readString();
    }

    public static final Creator<SimpleNotification> CREATOR = new Creator<SimpleNotification>() {
        @Override
        public SimpleNotification createFromParcel(Parcel in) {
            return new SimpleNotification(in);
        }

        @Override
        public SimpleNotification[] newArray(int size) {
            return new SimpleNotification[size];
        }
    };

    public String getNotificationMessage() {
        return notificationMessage;
    }

    public void setNotificationMessage(String notificationMessage) {
        this.notificationMessage = notificationMessage;
    }

    public String getNotificationTitle() {
        return notificationTitle;
    }

    public void setNotificationTitle(String notificationTitle) {
        this.notificationTitle = notificationTitle;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(notificationMessage);
        dest.writeString(notificationTitle);
    }
}

@@ -99,16 +99,60 @@
 celable;
+%0Aimport android.support.annotation.Nullable;
 %0A%0A/**%0A *
@@ -376,16 +376,26 @@
 Message,
+ @Nullable
  String 

add nullable annotation