package mx.com.geexco.test.undertow.us.dto;

import com.google.gson.annotations.SerializedName;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author gxc-mg
 */
public class GCMMessage {

    @SerializedName(value = "registration_ids")
    private String[] receivers;
    @SerializedName(value = "data")
    private Map<String, String> payload = new HashMap<>();
    @SerializedName(value = "content_available")
    private boolean content_available;

    public GCMMessage() {
        this.content_available=true;
    }

    public void addData(String key, String value) {
        payload.put(key, value);
    }

    public GCMMessage(String[] receivers) {
        this.receivers = receivers;
        this.content_available=true;
    }

    public String[] getReceivers() {
        return receivers;
    }

    public void setReceivers(String[] receivers) {
        this.receivers = receivers;
    }

    public Map<String, String> getPayload() {
        return payload;
    }

    public void setPayload(Map<String, String> payload) {
        this.payload = payload;
    }

    public void setContent_available(boolean content_available) {
        this.content_available = content_available;
    }

    public boolean getContent_available() {
        return content_available;
    }
    
}

@@ -284,24 +284,138 @@
 receivers;%0D%0A
+    @SerializedName(value = %22notification%22)%0D%0A    private Map%3CString, String%3E notificationData = new HashMap%3C%3E();%0D%0A
     @Seriali
@@ -435,24 +435,24 @@
  = %22data%22)%0D%0A
-
     private 
@@ -750,32 +750,153 @@
  value);%0D%0A    %7D%0D
+%0A    %0D%0A    public void addNotificationData(String key, String value) %7B%0D%0A        notificationData.put(key, value);%0D%0A    %7D%0D
 %0A%0D%0A    public GC
@@ -1319,24 +1319,24 @@
 payload) %7B%0D%0A
-
         this
@@ -1354,32 +1354,272 @@
 payload;%0D%0A    %7D%0D
+%0A    %0D%0A    public Map%3CString, String%3E getNotificationData() %7B%0D%0A        return notificationData;%0D%0A    %7D%0D%0A%0D%0A    public void setNotificationData(Map%3CString, String%3E notificationData) %7B%0D%0A        this.notificationData = notificationData;%0D%0A    %7D%0D
 %0A%0D%0A    public vo

Update GCMMessage.java