Back to project page nwcloud-androidgcm-app.
The source code is released under:
Apache License
If you think the Android project nwcloud-androidgcm-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.sapmentors.nwcloud.gcm.backend; // w w w. ja v a2s. c o m import com.google.api.client.util.Key; /** * Represents the PushMessage in external state * This represents the JSON/XML payload that must be provided * to the REST API * * @author dagfinn.parnas * */ public class PushMessageExternal { @Key protected String emailFrom; @Key protected String[] emailTo; @Key protected int messageType; @Key protected String message; public PushMessageExternal(String emailFrom, String[] emailTo, int messageType, String message) { this.emailFrom = emailFrom; this.emailTo = emailTo; this.messageType = messageType; this.message = message; } public PushMessageExternal() { } public String getEmailFrom() { return emailFrom; } public void setEmailFrom(String emailFrom) { this.emailFrom = emailFrom; } public String[] getEmailTo() { return emailTo; } public void setEmailTo(String[] emailTo) { this.emailTo = emailTo; } public int getMessageType() { return messageType; } public void setMessageType(int messageType) { this.messageType = messageType; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }