@JsonProperty
final Integer expiresInSeconds;
+ @JsonProperty
+ @JsonInclude(JsonInclude.Include.NON_NULL)
+ final Boolean viewOnce;
+
@JsonProperty
@JsonInclude(JsonInclude.Include.NON_NULL)
final JsonReaction reaction;
}
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;
message = messageReceived.getMessage();
groupInfo = messageReceived.getGroupId().length > 0 ? new JsonGroupInfo(messageReceived.getGroupId()) : null;
expiresInSeconds = null;
+ viewOnce = 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;
reaction = null; // TODO Replace these 4 with the proper commands
quote = null;
mentions = null;