3 import org
.asamk
.signal
.AttachmentInvalidException
;
4 import org
.asamk
.signal
.GroupNotFoundException
;
5 import org
.freedesktop
.dbus
.DBusInterface
;
6 import org
.freedesktop
.dbus
.DBusSignal
;
7 import org
.freedesktop
.dbus
.exceptions
.DBusException
;
8 import org
.whispersystems
.signalservice
.api
.push
.exceptions
.EncapsulatedExceptions
;
10 import java
.io
.IOException
;
11 import java
.util
.List
;
13 public interface Signal
extends DBusInterface
{
14 void sendMessage(String message
, List
<String
> attachments
, String recipient
) throws EncapsulatedExceptions
, AttachmentInvalidException
, IOException
;
16 void sendMessage(String message
, List
<String
> attachments
, List
<String
> recipients
) throws EncapsulatedExceptions
, AttachmentInvalidException
, IOException
;
18 void sendEndSessionMessage(List
<String
> recipients
) throws IOException
, EncapsulatedExceptions
;
20 void sendGroupMessage(String message
, List
<String
> attachments
, byte[] groupId
) throws EncapsulatedExceptions
, GroupNotFoundException
, AttachmentInvalidException
, IOException
;
22 class MessageReceived
extends DBusSignal
{
23 private long timestamp
;
24 private String sender
;
25 private byte[] groupId
;
26 private String message
;
27 private List
<String
> attachments
;
29 public MessageReceived(String objectpath
, long timestamp
, String sender
, byte[] groupId
, String message
, List
<String
> attachments
) throws DBusException
{
30 super(objectpath
, timestamp
, sender
, groupId
, message
, attachments
);
31 this.timestamp
= timestamp
;
33 this.groupId
= groupId
;
34 this.message
= message
;
35 this.attachments
= attachments
;
38 public long getTimestamp() {
42 public String
getSender() {
46 public byte[] getGroupId() {
50 public String
getMessage() {
54 public List
<String
> getAttachments() {