Update README

This commit is contained in:
AsamK 2023-09-16 11:57:43 +02:00
parent e626cc0390
commit e5aa10a730
2 changed files with 11 additions and 7 deletions

View 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() {