Dbus enhancements (#543)

* Dbus enhancements

* reverted sendMessage, completed isContactBlocked, fixed formatting

* Updates based on feedback and fixes

* Added trim

* fixed getContactName Exception handling
This commit is contained in:
Adimarantis 2021-03-01 20:31:17 +01:00 committed by GitHub
parent 8d0de67530
commit 1d2c7a479d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 146 additions and 28 deletions

View file

@ -54,6 +54,22 @@ public interface Signal extends DBusInterface {
void updateProfile(
String name, String about, String aboutEmoji, String avatarPath, boolean removeAvatar
) throws Error.Failure;
public String version();
public List<String> listNumbers();
public List<String> getContactNumber(final String name) throws Error.Failure;
public void quitGroup(final byte[] groupId) throws Error.GroupNotFound,Error.Failure;
public boolean isContactBlocked(final String number);
public boolean isGroupBlocked(final byte[] groupId);
public boolean isMember(final byte[] groupId);
public void joinGroup(final String groupLink) throws Error.Failure;
class MessageReceived extends DBusSignal {