Added JsonSyncDataMessage class with destination field.

This commit is contained in:
Gabriel Fernández Valdés 2019-09-29 09:03:12 -04:00 committed by AsamK
parent 7e267f1ebb
commit 62696fbc67
2 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,18 @@
package org.asamk.signal;
import org.whispersystems.signalservice.api.messages.multidevice.SentTranscriptMessage;
import java.util.ArrayList;
import java.util.List;
class JsonSyncDataMessage extends JsonDataMessage {
String destination;
JsonSyncDataMessage(SentTranscriptMessage transcriptMessage) {
super(transcriptMessage.getMessage());
if (transcriptMessage.getDestination().isPresent()) {
this.destination = transcriptMessage.getDestination().get();
}
}
}