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
{
25 public String profileKey
;
27 @JsonProperty(defaultValue
= "false")
28 public boolean blocked
;
31 public Integer inboxPosition
;
33 @JsonProperty(defaultValue
= "false")
34 public boolean archived
;
36 public ContactInfo() {
39 public ContactInfo(SignalServiceAddress address
) {
40 this.number
= address
.getNumber().orNull();
41 this.uuid
= address
.getUuid().orNull();
45 public SignalServiceAddress
getAddress() {
46 return new SignalServiceAddress(uuid
, number
);