mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add viewOnce boolean to json data message
This commit is contained in:
parent
46a4c2c0d0
commit
5a2c4b8dfd
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,10 @@ class JsonDataMessage {
|
|||
@JsonProperty
|
||||
final Integer expiresInSeconds;
|
||||
|
||||
@JsonProperty
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
final Boolean viewOnce;
|
||||
|
||||
@JsonProperty
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
final JsonReaction reaction;
|
||||
|
@ -66,6 +70,7 @@ class JsonDataMessage {
|
|||
}
|
||||
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;
|
||||
|
@ -96,6 +101,7 @@ class JsonDataMessage {
|
|||
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;
|
||||
|
@ -108,6 +114,7 @@ class JsonDataMessage {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue