@JsonProperty
final Integer expiresInSeconds;
+ @JsonProperty
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ final Boolean viewOnce;
+
@JsonProperty
@JsonInclude(JsonInclude.Include.NON_NULL)
final JsonReaction reaction;
@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;
}
this.message = dataMessage.getBody().orNull();
this.expiresInSeconds = dataMessage.getExpiresInSeconds();
+ this.viewOnce = dataMessage.isViewOnce();
this.reaction = dataMessage.getReaction().isPresent()
? new JsonReaction(dataMessage.getReaction().get(), m)
: null;
} else {
this.mentions = List.of();
}
+ remoteDelete = dataMessage.getRemoteDelete().isPresent() ? new JsonRemoteDelete(dataMessage.getRemoteDelete()
+ .get()) : null;
if (dataMessage.getAttachments().isPresent()) {
this.attachments = dataMessage.getAttachments()
.get()
message = messageReceived.getMessage();
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;
message = messageReceived.getMessage();
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;