X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/5859e7b9f78b5d8963c56c66b75530ee3f094bee..27d9424f1e7f607ac2dfad5b2164d065ffb79ef7:/src/main/java/org/asamk/TextSecure.java diff --git a/src/main/java/org/asamk/TextSecure.java b/src/main/java/org/asamk/TextSecure.java new file mode 100644 index 00000000..d046c0a1 --- /dev/null +++ b/src/main/java/org/asamk/TextSecure.java @@ -0,0 +1,19 @@ +package org.asamk; + +import org.asamk.textsecure.AttachmentInvalidException; +import org.asamk.textsecure.GroupNotFoundException; +import org.freedesktop.dbus.DBusInterface; +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 attachments, String recipient) throws EncapsulatedExceptions, AttachmentInvalidException, IOException; + + void sendMessage(String message, List attachments, List recipients) throws EncapsulatedExceptions, AttachmentInvalidException, IOException; + + void sendEndSessionMessage(List recipients) throws IOException, EncapsulatedExceptions; + + void sendGroupMessage(String message, List attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException; +}