1 package org
.asamk
.signal
.storage
.contacts
;
3 import com
.fasterxml
.jackson
.annotation
.JsonIgnore
;
4 import com
.fasterxml
.jackson
.annotation
.JsonProperty
;
6 import org
.whispersystems
.signalservice
.api
.push
.SignalServiceAddress
;
10 public class ContactInfo
{
24 @JsonProperty(defaultValue
= "0")
25 public int messageExpirationTime
;
28 public String profileKey
;
30 @JsonProperty(defaultValue
= "false")
31 public boolean blocked
;
34 public Integer inboxPosition
;
36 @JsonProperty(defaultValue
= "false")
37 public boolean archived
;
39 public ContactInfo() {
42 public ContactInfo(SignalServiceAddress address
) {
43 this.number
= address
.getNumber().orNull();
44 this.uuid
= address
.getUuid().orNull();
48 public SignalServiceAddress
getAddress() {
49 return new SignalServiceAddress(uuid
, number
);