]> nmode's Git Repositories - signal-cli/commitdiff
Update README
authorAsamK <asamk@gmx.de>
Sat, 16 Sep 2023 09:57:43 +0000 (11:57 +0200)
committerAsamK <asamk@gmx.de>
Sat, 16 Sep 2023 09:57:43 +0000 (11:57 +0200)
README.md
lib/src/main/java/org/asamk/signal/manager/storage/identities/IdentityInfo.java

index 6d857fb6c6c3045b5579fb28b9b00d001c7adde9..b546a62c53764173e189694da7090b419a53764c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,8 +6,9 @@ signal-cli uses a [patched libsignal-service-java](https://github.com/Turasa/lib
 extracted from the [Signal-Android source code](https://github.com/signalapp/Signal-Android/tree/main/libsignal/service).
 For registering you need a phone number where you can receive SMS or incoming calls.
 
-signal-cli is primarily intended to be used on servers to notify admins of important events. For this use-case, it has a daemon mode with D-BUS
-interface ([man page](https://github.com/AsamK/signal-cli/blob/master/man/signal-cli-dbus.5.adoc)) and JSON-RPC interface ([documentation](https://github.com/AsamK/signal-cli/wiki/JSON-RPC-service)).
+signal-cli is primarily intended to be used on servers to notify admins of important events.
+For this use-case, it has a daemon mode with JSON-RPC interface ([man page](https://github.com/AsamK/signal-cli/blob/master/man/signal-cli-jsonrpc.5.adoc))
+and D-BUS interface ([man page](https://github.com/AsamK/signal-cli/blob/master/man/signal-cli-dbus.5.adoc)) .
 For the JSON-RPC interface there's also a simple [example client](https://github.com/AsamK/signal-cli/tree/master/client), written in Rust.
 
 ## Installation
@@ -39,7 +40,6 @@ sudo ln -sf /opt/signal-cli-"${VERSION}"/bin/signal-cli /usr/local/bin/
 You can find further instructions on the Wiki:
 
 - [Quickstart](https://github.com/AsamK/signal-cli/wiki/Quickstart)
-- [DBus Service](https://github.com/AsamK/signal-cli/wiki/DBus-service)
 
 ## Usage
 
index 84f7b06ff200e7243310c7b8110df92980e2fcb6..585ba945151556c4eb1309c96c197d6854d5c3fa 100644 (file)
@@ -6,22 +6,26 @@ import org.whispersystems.signalservice.api.push.ServiceId;
 
 public class IdentityInfo {
 
-    private final ServiceId serviceId;
+    private final String name;
     private final IdentityKey identityKey;
     private final TrustLevel trustLevel;
     private final long addedTimestamp;
 
     IdentityInfo(
-            final ServiceId serviceId, IdentityKey identityKey, TrustLevel trustLevel, long addedTimestamp
+            final String name, IdentityKey identityKey, TrustLevel trustLevel, long addedTimestamp
     ) {
-        this.serviceId = serviceId;
+        this.name = name;
         this.identityKey = identityKey;
         this.trustLevel = trustLevel;
         this.addedTimestamp = addedTimestamp;
     }
 
     public ServiceId getServiceId() {
-        return serviceId;
+        return ServiceId.parseOrThrow(name);
+    }
+
+    public String getName() {
+        return name;
     }
 
     public IdentityKey getIdentityKey() {