Add possibility to send messages via dbus daemon

This commit is contained in:
AsamK 2015-12-12 22:56:30 +01:00
parent a69e8facd2
commit 5859e7b9f7
3 changed files with 263 additions and 176 deletions

View file

@ -367,8 +367,9 @@ class Manager implements TextSecure {
sendMessage(message, attachments, recipients);
}
@Override
public void sendMessage(String messageText, List<String> attachments,
Collection<String> recipients)
List<String> recipients)
throws IOException, EncapsulatedExceptions, AttachmentInvalidException {
final TextSecureDataMessage.Builder messageBuilder = TextSecureDataMessage.newBuilder().withBody(messageText);
if (attachments != null) {
@ -379,6 +380,7 @@ class Manager implements TextSecure {
sendMessage(message, recipients);
}
@Override
public void sendEndSessionMessage(List<String> recipients) throws IOException, EncapsulatedExceptions {
TextSecureDataMessage message = TextSecureDataMessage.newBuilder()
.asEndSessionMessage()