That fuck shit the fascists are using
at master 62 lines 1.9 kB view raw
1package org.tm.archive.messagedetails; 2 3import androidx.annotation.NonNull; 4import androidx.annotation.Nullable; 5 6import org.tm.archive.database.documents.IdentityKeyMismatch; 7import org.tm.archive.database.documents.NetworkFailure; 8import org.tm.archive.database.model.MessageRecord; 9import org.tm.archive.recipients.Recipient; 10 11public final class RecipientDeliveryStatus { 12 13 enum Status { 14 UNKNOWN, PENDING, SENT, DELIVERED, READ, VIEWED, SKIPPED, 15 } 16 17 private final MessageRecord messageRecord; 18 private final Recipient recipient; 19 private final Status deliveryStatus; 20 private final boolean isUnidentified; 21 private final long timestamp; 22 private final NetworkFailure networkFailure; 23 private final IdentityKeyMismatch keyMismatchFailure; 24 25 RecipientDeliveryStatus(@NonNull MessageRecord messageRecord, @NonNull Recipient recipient, @NonNull Status deliveryStatus, boolean isUnidentified, long timestamp, @Nullable NetworkFailure networkFailure, @Nullable IdentityKeyMismatch keyMismatchFailure) { 26 this.messageRecord = messageRecord; 27 this.recipient = recipient; 28 this.deliveryStatus = deliveryStatus; 29 this.isUnidentified = isUnidentified; 30 this.timestamp = timestamp; 31 this.networkFailure = networkFailure; 32 this.keyMismatchFailure = keyMismatchFailure; 33 } 34 35 public @NonNull MessageRecord getMessageRecord() { 36 return messageRecord; 37 } 38 39 public @NonNull Status getDeliveryStatus() { 40 return deliveryStatus; 41 } 42 43 public boolean isUnidentified() { 44 return isUnidentified; 45 } 46 47 public long getTimestamp() { 48 return timestamp; 49 } 50 51 public @NonNull Recipient getRecipient() { 52 return recipient; 53 } 54 55 public @Nullable NetworkFailure getNetworkFailure() { 56 return networkFailure; 57 } 58 59 public @Nullable IdentityKeyMismatch getKeyMismatchFailure() { 60 return keyMismatchFailure; 61 } 62}