X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/dd4225dcb193218a6c20a2e12514d0dac2e2a3a0..46a4c2c0d0a36b7f230fc2c2d47aa371a6e02d35:/src/main/java/org/asamk/signal/json/JsonReaction.java diff --git a/src/main/java/org/asamk/signal/json/JsonReaction.java b/src/main/java/org/asamk/signal/json/JsonReaction.java index 5e978fe0..2fa15b48 100644 --- a/src/main/java/org/asamk/signal/json/JsonReaction.java +++ b/src/main/java/org/asamk/signal/json/JsonReaction.java @@ -1,14 +1,23 @@ package org.asamk.signal.json; +import com.fasterxml.jackson.annotation.JsonProperty; + import org.asamk.signal.manager.Manager; import org.whispersystems.signalservice.api.messages.SignalServiceDataMessage.Reaction; public class JsonReaction { - String emoji; - String targetAuthor; - long targetSentTimestamp; - boolean isRemove; + @JsonProperty + final String emoji; + + @JsonProperty + final String targetAuthor; + + @JsonProperty + final long targetSentTimestamp; + + @JsonProperty + final boolean isRemove; JsonReaction(Reaction reaction, Manager m) { this.emoji = reaction.getEmoji();