]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/JsonReceiptMessage.java
Output json when receiving messages from dbus and --json parameter is given
[signal-cli] / src / main / java / org / asamk / signal / JsonReceiptMessage.java
diff --git a/src/main/java/org/asamk/signal/JsonReceiptMessage.java b/src/main/java/org/asamk/signal/JsonReceiptMessage.java
deleted file mode 100644 (file)
index fd875af..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.asamk.signal;
-
-import org.whispersystems.signalservice.api.messages.SignalServiceReceiptMessage;
-
-import java.util.List;
-
-class JsonReceiptMessage {
-
-    long when;
-    boolean isDelivery;
-    boolean isRead;
-    List<Long> timestamps;
-
-    JsonReceiptMessage(SignalServiceReceiptMessage receiptMessage) {
-
-        this.when = receiptMessage.getWhen();
-        if (receiptMessage.isDeliveryReceipt()) {
-            this.isDelivery = true;
-        }
-        if (receiptMessage.isReadReceipt()) {
-            this.isRead = true;
-        }
-        this.timestamps = receiptMessage.getTimestamps();
-    }
-}