@JsonInclude(JsonInclude.Include.NON_NULL)
final JsonSticker sticker;
+ @JsonProperty
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ final JsonRemoteDelete remoteDelete;
+
@JsonProperty
@JsonInclude(JsonInclude.Include.NON_NULL)
final JsonGroupInfo groupInfo;
} else {
this.mentions = List.of();
}
+ remoteDelete = dataMessage.getRemoteDelete().isPresent() ? new JsonRemoteDelete(dataMessage.getRemoteDelete()
+ .get()) : null;
if (dataMessage.getAttachments().isPresent()) {
this.attachments = dataMessage.getAttachments()
.get()
groupInfo = messageReceived.getGroupId().length > 0 ? new JsonGroupInfo(messageReceived.getGroupId()) : null;
expiresInSeconds = null;
viewOnce = null;
+ remoteDelete = null;
reaction = null; // TODO Replace these 4 with the proper commands
quote = null;
mentions = null;
groupInfo = messageReceived.getGroupId().length > 0 ? new JsonGroupInfo(messageReceived.getGroupId()) : null;
expiresInSeconds = null;
viewOnce = null;
+ remoteDelete = null;
reaction = null; // TODO Replace these 4 with the proper commands
quote = null;
mentions = null;