-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more details to listContacts command
Fixes #1502
- Loading branch information
Showing
4 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.asamk.signal.json; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import java.util.List; | ||
|
||
public record JsonContact( | ||
String number, | ||
String uuid, | ||
String username, | ||
String name, | ||
String givenName, | ||
String familyName, | ||
String nickName, | ||
String nickGivenName, | ||
String nickFamilyName, | ||
String note, | ||
String color, | ||
boolean isBlocked, | ||
boolean isHidden, | ||
int messageExpirationTime, | ||
boolean profileSharing, | ||
boolean unregistered, | ||
JsonProfile profile, | ||
@JsonInclude(JsonInclude.Include.NON_NULL) JsonInternal internal | ||
) { | ||
|
||
public record JsonProfile( | ||
long lastUpdateTimestamp, | ||
String givenName, | ||
String familyName, | ||
String about, | ||
String aboutEmoji, | ||
boolean hasAvatar, | ||
String mobileCoinAddress | ||
) {} | ||
|
||
public record JsonInternal( | ||
List<String> capabilities, | ||
String unidentifiedAccessMode, | ||
Boolean sharesPhoneNumber, | ||
Boolean discoverableByPhonenumber | ||
) {} | ||
} |