mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-28 16:12:16 +00:00
38 lines
923 B
Java
38 lines
923 B
Java
package org.whispersystems.textsecure.push;
|
|
|
|
import java.util.LinkedList;
|
|
import java.util.List;
|
|
|
|
public class OutgoingGcmMessage {
|
|
|
|
private List<String> destinations;
|
|
private String messageText;
|
|
private List<String> attachments;
|
|
|
|
public OutgoingGcmMessage(List<String> destinations, String messageText, List<String> attachments) {
|
|
this.destinations = destinations;
|
|
this.messageText = messageText;
|
|
this.attachments = attachments;
|
|
}
|
|
|
|
public OutgoingGcmMessage(String destination, String messageText) {
|
|
this.destinations = new LinkedList<String>();
|
|
this.destinations.add(destination);
|
|
this.messageText = messageText;
|
|
this.attachments = new LinkedList<String>();
|
|
}
|
|
|
|
public List<String> getDestinations() {
|
|
return destinations;
|
|
}
|
|
|
|
public String getMessageText() {
|
|
return messageText;
|
|
}
|
|
|
|
public List<String> getAttachments() {
|
|
return attachments;
|
|
}
|
|
|
|
}
|