Update README
This commit is contained in:
parent
e626cc0390
commit
e5aa10a730
@ -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).
|
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.
|
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
|
signal-cli is primarily intended to be used on servers to notify admins of important events.
|
||||||
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)).
|
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.
|
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
|
## 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:
|
You can find further instructions on the Wiki:
|
||||||
|
|
||||||
- [Quickstart](https://github.com/AsamK/signal-cli/wiki/Quickstart)
|
- [Quickstart](https://github.com/AsamK/signal-cli/wiki/Quickstart)
|
||||||
- [DBus Service](https://github.com/AsamK/signal-cli/wiki/DBus-service)
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -6,22 +6,26 @@ import org.whispersystems.signalservice.api.push.ServiceId;
|
|||||||
|
|
||||||
public class IdentityInfo {
|
public class IdentityInfo {
|
||||||
|
|
||||||
private final ServiceId serviceId;
|
private final String name;
|
||||||
private final IdentityKey identityKey;
|
private final IdentityKey identityKey;
|
||||||
private final TrustLevel trustLevel;
|
private final TrustLevel trustLevel;
|
||||||
private final long addedTimestamp;
|
private final long addedTimestamp;
|
||||||
|
|
||||||
IdentityInfo(
|
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.identityKey = identityKey;
|
||||||
this.trustLevel = trustLevel;
|
this.trustLevel = trustLevel;
|
||||||
this.addedTimestamp = addedTimestamp;
|
this.addedTimestamp = addedTimestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ServiceId getServiceId() {
|
public ServiceId getServiceId() {
|
||||||
return serviceId;
|
return ServiceId.parseOrThrow(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IdentityKey getIdentityKey() {
|
public IdentityKey getIdentityKey() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user