]>
nmode's Git Repositories - signal-cli/blob - src/main/java/org/asamk/signal/json/JsonContactPhone.java
1 package org
.asamk
.signal
.json
;
3 import com
.fasterxml
.jackson
.annotation
.JsonProperty
;
5 import org
.asamk
.signal
.util
.Util
;
6 import org
.whispersystems
.signalservice
.api
.messages
.shared
.SharedContact
;
8 public class JsonContactPhone
{
11 private final String value
;
14 private final SharedContact
.Phone
.Type type
;
17 private final String label
;
19 public JsonContactPhone(SharedContact
.Phone phone
) {
20 value
= phone
.getValue();
21 type
= phone
.getType();
22 label
= Util
.getStringIfNotBlank(phone
.getLabel());