28 lines
1.3 KiB
Java
28 lines
1.3 KiB
Java
package org.asamk;
|
|
|
|
import org.asamk.textsecure.AttachmentInvalidException;
|
|
import org.asamk.textsecure.GroupNotFoundException;
|
|
import org.freedesktop.dbus.DBusInterface;
|
|
import org.freedesktop.dbus.DBusSignal;
|
|
import org.freedesktop.dbus.exceptions.DBusException;
|
|
import org.whispersystems.textsecure.api.push.exceptions.EncapsulatedExceptions;
|
|
|
|
import java.io.IOException;
|
|
import java.util.List;
|
|
|
|
public interface TextSecure extends DBusInterface {
|
|
void sendMessage(String message, List<String> attachments, String recipient) throws EncapsulatedExceptions, AttachmentInvalidException, IOException;
|
|
|
|
void sendMessage(String message, List<String> attachments, List<String> recipients) throws EncapsulatedExceptions, AttachmentInvalidException, IOException;
|
|
|
|
void sendEndSessionMessage(List<String> recipients) throws IOException, EncapsulatedExceptions;
|
|
|
|
void sendGroupMessage(String message, List<String> attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException;
|
|
|
|
class MessageReceived extends DBusSignal {
|
|
public MessageReceived(String objectpath, String sender, byte[] groupId, String message, List<String> attachments) throws DBusException {
|
|
super(objectpath, sender, groupId, message, attachments);
|
|
}
|
|
}
|
|
}
|