implement Dbus addDevice and removeDevice

update documentation as well
This commit is contained in:
John Freed 2021-09-21 13:18:02 +02:00
parent b875465eff
commit 8b19312a03
3 changed files with 37 additions and 0 deletions

View file

@ -334,6 +334,11 @@ Exceptions: Failure, InvalidNumber
=== Other methods
addDevice(deviceUri<s>) -> <>::
* deviceUri : URI in the form of tsdevice:/?uuid=... Normally received from Signal desktop or smartphone app
Exception: Failure
listDevices() -> devices<as>::
* devices : String array of linked devices
@ -346,6 +351,11 @@ This is a concatenated list of all defined contacts as well of profiles known (e
Exceptions: None
removeDevice(deviceId<i>) -> <>::
* deviceId : Device ID to remove, obtained from listDevices() command
Exception: Failure
sendNoteToSelfMessage(message<s>, attachments<as>) -> timestamp<x>::
* message : Text to send (can be UTF8)
* attachments : String array of filenames to send as attachments (passed as filename, so need to be readable by the user signal-cli is running under)