implement Dbus sync methods (#737)

implement two Dbus methods:
- sendContacts
- sendSyncRequest

update documentation
This commit is contained in:
John Freed 2021-09-26 09:00:26 +02:00 committed by GitHub
parent 1ca0e75ef1
commit 8bee08fd96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View file

@ -202,6 +202,24 @@ public class DbusSignalImpl implements Signal {
}
}
@Override
public void sendContacts() {
try {
m.sendContacts();
} catch (IOException e) {
throw new Error.Failure("SendContacts error: " + e.getMessage());
}
}
@Override
public void sendSyncRequest() {
try {
m.requestAllSyncData();
} catch (IOException e) {
throw new Error.Failure("Request sync data error: " + e.getMessage());
}
}
@Override
public long sendNoteToSelfMessage(
final String message, final List<String> attachments