mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
implement Dbus updateAccount and listDevices (#730)
* implement Dbus updateAccount and listDevices implement updateAccount(deviceName<s>) to change device name implement listDevices update documentation * implement Dbus addDevice and removeDevice update documentation as well * Dbus add/remove/list/update devices modifications responding to requests by AsamK * Dbus incorporating InvalidUri error Co-authored-by: AsamK <asamk@gmx.de>
This commit is contained in:
parent
d47574351e
commit
e78463ea0a
3 changed files with 144 additions and 0 deletions
|
@ -89,6 +89,14 @@ public interface Signal extends DBusInterface {
|
|||
|
||||
boolean isRegistered();
|
||||
|
||||
void addDevice(String uri) throws Error.InvalidUri;
|
||||
|
||||
void removeDevice(int deviceId) throws Error.Failure;
|
||||
|
||||
List<String> listDevices() throws Error.Failure;
|
||||
|
||||
void updateDeviceName(String deviceName) throws Error.Failure;
|
||||
|
||||
void updateProfile(
|
||||
String name, String about, String aboutEmoji, String avatarPath, boolean removeAvatar
|
||||
) throws Error.Failure;
|
||||
|
@ -241,6 +249,13 @@ public interface Signal extends DBusInterface {
|
|||
}
|
||||
}
|
||||
|
||||
class InvalidUri extends DBusExecutionException {
|
||||
|
||||
public InvalidUri(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
class Failure extends DBusExecutionException {
|
||||
|
||||
public Failure(final String message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue