mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Implement configuration properties for dbus
Closes #759 commit169bb518bf
Author: John Freed <okgithub@johnfreed.com> Date: Fri Oct 15 08:53:34 2021 +0200 remove org.asamk.signal.manager.api.Configuration commit27ecfee382
Author: John Freed <okgithub@johnfreed.com> Date: Fri Oct 15 08:40:13 2021 +0200 add a DBus "daemon running" indicator commit94b3d9e2ed
Author: John Freed <okgithub@johnfreed.com> Date: Fri Oct 15 08:20:03 2021 +0200 changing most DBus logger.info to logger.debug commit15da060127
Author: John Freed <okgithub@johnfreed.com> Date: Fri Oct 15 00:09:26 2021 +0200 Configuration for Dbus and main Main program subcommand - fix logic to take into account previously unset flags - provide output in json and plain-text formats new Dbus Properties: - ConfigurationReadReceipts - ConfigurationUnidentifiedDeliveryIndicators - ConfigurationTypingIndicators - ConfigurationLinkPreviews removed getConfiguration and setConfiguration methods updated documentation commit09da3aae62
Merge:3c40b11
18ad9fb
Author: John Freed <okgithub@johnfreed.com> Date: Thu Oct 14 15:24:07 2021 +0200 Merge branch master into dbus_updateConfiguration commit3c40b11b8a
Merge:8416d4a
cadcc6c
Author: John Freed <okgithub@johnfreed.com> Date: Sat Oct 9 14:08:08 2021 +0200 Merge branch master into dbus_updateConfiguration commit8416d4ac47
Author: John Freed <okgithub@johnfreed.com> Date: Mon Oct 4 08:48:56 2021 +0200 Dbus get/setConfiguration methods implement: - getConfiguration() -> [readReceipts<b>, unidentifiedDeliveryIndicators<b>, typingIndicators<b>, linkPreviews<b>] -> <>:: - setConfiguration(readReceipts<b>, unidentifiedDeliveryIndicators<b>, typingIndicators<b>, linkPreviews<b>) -> <>:: Update documentation
This commit is contained in:
parent
e22cc457ae
commit
8a216e3245
4 changed files with 129 additions and 1 deletions
|
@ -364,6 +364,26 @@ removeDevice() -> <>::
|
|||
|
||||
Exceptions: Failure
|
||||
|
||||
=== Configuration properties
|
||||
The configuration's object path, which exists only for primary devices, is constructed as follows:
|
||||
"/org/asamk/Signal/" + DBusNumber + "/Configuration"
|
||||
* DBusNumber : recipient's phone number, with underscore (_) replacing plus (+)
|
||||
|
||||
Configurations have the following (case-sensitive) properties:
|
||||
* ReadReceipts<b> : should send read receipts (true/false)
|
||||
* UnidentifiedDeliveryIndicators<b> : should show unidentified delivery indicators (true/false)
|
||||
* TypingIndicators<b> : should send/show typing indicators (true/false)
|
||||
* LinkPreviews<b> : should generate link previews (true/false)
|
||||
|
||||
To get a property, use (replacing `--session` with `--system` if needed):
|
||||
`dbus-send --session --dest=org.asamk.Signal --print-reply $OBJECT_PATH org.freedesktop.DBus.Properties.Get string:org.asamk.Signal.Configuration string:$PROPERTY_NAME`
|
||||
|
||||
To set a property, use:
|
||||
`dbus-send --session --dest=org.asamk.Signal --print-reply $OBJECT_PATH org.freedesktop.DBus.Properties.Set string:org.asamk.Signal.Configuration string:$PROPERTY_NAME variant:$PROPERTY_TYPE:$PROPERTY_VALUE`
|
||||
|
||||
To get all properties, use:
|
||||
`dbus-send --session --dest=org.asamk.Signal --print-reply $OBJECT_PATH org.freedesktop.DBus.Properties.GetAll string:org.asamk.Signal.Configuration`
|
||||
|
||||
=== Other methods
|
||||
|
||||
getContactName(number<s>) -> name<s>::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue