mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
parent
0f701df91f
commit
b178c7c67a
8 changed files with 95 additions and 9 deletions
|
@ -15,6 +15,7 @@ record JsonDataMessage(
|
|||
@JsonInclude(JsonInclude.Include.NON_NULL) JsonQuote quote,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) JsonPayment payment,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) List<JsonMention> mentions,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) List<JsonPreview> previews,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) List<JsonAttachment> attachments,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) JsonSticker sticker,
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL) JsonRemoteDelete remoteDelete,
|
||||
|
@ -36,6 +37,10 @@ record JsonDataMessage(
|
|||
.stream()
|
||||
.map(JsonMention::from)
|
||||
.toList() : null;
|
||||
final var previews = dataMessage.previews().size() > 0 ? dataMessage.previews()
|
||||
.stream()
|
||||
.map(JsonPreview::from)
|
||||
.toList() : null;
|
||||
final var remoteDelete = dataMessage.remoteDeleteId().isPresent()
|
||||
? new JsonRemoteDelete(dataMessage.remoteDeleteId().get())
|
||||
: null;
|
||||
|
@ -57,6 +62,7 @@ record JsonDataMessage(
|
|||
quote,
|
||||
payment,
|
||||
mentions,
|
||||
previews,
|
||||
attachments,
|
||||
sticker,
|
||||
remoteDelete,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue