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() {
        content_available=true;
    }

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

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

    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 isContent_available() {
        return content_available;
    }
    
}

@@ -512,16 +512,21 @@
         
+this.
 content_
@@ -721,32 +721,70 @@
 s = receivers;%0D%0A
+        this.content_available=true;%0D%0A
     %7D%0D%0A%0D%0A    pub

Update GCMMessage.java