mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Update README
This commit is contained in:
parent
e626cc0390
commit
e5aa10a730
2 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue