]>
nmode's Git Repositories - signal-cli/blob - lib/src/main/java/org/asamk/signal/manager/storage/contacts/LegacyContactInfo.java
0d297e7f625fd55834126ef69eb5c0b6ff3e991f
1 package org
.asamk
.signal
.manager
.storage
.contacts
;
3 import com
.fasterxml
.jackson
.annotation
.JsonIgnore
;
4 import com
.fasterxml
.jackson
.annotation
.JsonProperty
;
6 import org
.asamk
.signal
.manager
.storage
.recipients
.RecipientAddress
;
7 import org
.whispersystems
.signalservice
.api
.push
.ServiceId
;
11 import static com
.fasterxml
.jackson
.annotation
.JsonProperty
.Access
.WRITE_ONLY
;
13 public class LegacyContactInfo
{
27 @JsonProperty(defaultValue
= "0")
28 public int messageExpirationTime
;
30 @JsonProperty(access
= WRITE_ONLY
)
31 public String profileKey
;
33 @JsonProperty(defaultValue
= "false")
34 public boolean blocked
;
37 public Integer inboxPosition
;
39 @JsonProperty(defaultValue
= "false")
40 public boolean archived
;
42 public LegacyContactInfo() {
46 public RecipientAddress
getAddress() {
47 return new RecipientAddress(uuid
== null ?
null : ServiceId
.from(uuid
), number
);