mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add added timestamp to Identities
This commit is contained in:
parent
f2c2597379
commit
55d485de88
3 changed files with 69 additions and 24 deletions
16
src/main/java/org/asamk/signal/TrustLevel.java
Normal file
16
src/main/java/org/asamk/signal/TrustLevel.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package org.asamk.signal;
|
||||
|
||||
public enum TrustLevel {
|
||||
UNTRUSTED,
|
||||
TRUSTED_UNVERIFIED,
|
||||
TRUSTED_VERIFIED;
|
||||
|
||||
private static TrustLevel[] cachedValues = null;
|
||||
|
||||
public static TrustLevel fromInt(int i) {
|
||||
if (TrustLevel.cachedValues == null) {
|
||||
TrustLevel.cachedValues = TrustLevel.values();
|
||||
}
|
||||
return TrustLevel.cachedValues[i];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue