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

@@ -417,25 +417,25 @@
 e = %22content
-_
+-
 available%22)%0D
@@ -447,23 +447,19 @@
 private 
-boolean
+int
  content
@@ -523,36 +523,33 @@
 ntent_available=
-true
+1
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -757,12 +757,9 @@
 ble=
-true
+1
 ;%0D%0A 
@@ -1157,23 +1157,19 @@
 ailable(
-boolean
+int
  content
@@ -1260,18 +1260,15 @@
 lic 
-boolean is
+int get
 Cont

Update GCMMessage.java