Added support for quotes, mentions and reactions in non-daemon JSON output

This commit is contained in:
david-harley 2020-12-22 15:05:35 +10:30
parent 83d5d53d8a
commit 1de0bbd4f7
10 changed files with 132 additions and 9 deletions

View file

@ -0,0 +1,18 @@
package org.asamk.signal.json;
import java.util.UUID;
import org.whispersystems.signalservice.api.messages.SignalServiceDataMessage;
public class JsonMention {
UUID uuid; // If possible, it would be nice to resolve this into their phone-number/name. Same for plain-text output
int start;
int length;
JsonMention(SignalServiceDataMessage.Mention mention){
this.uuid = mention.getUuid();
this.start = mention.getStart();
this.length = mention.getLength();
}
}