]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/TextSecure.java
Rename package
[signal-cli] / 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 (file)
index 0000000..d046c0a
--- /dev/null
@@ -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<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;
+}