package org.whispersystems.signalservice.api.messages; import java.util.List; public class SignalServiceReceiptMessage { public enum Type { UNKNOWN, DELIVERY, READ } private final Type type; private final List timestamps; private final long when; public SignalServiceReceiptMessage(Type type, List timestamps, long when) { this.type = type; this.timestamps = timestamps; this.when = when; } public Type getType() { return type; } public List getTimestamps() { return timestamps; } public long getWhen() { return when; } public boolean isDeliveryReceipt() { return type == Type.DELIVERY; } public boolean isReadReceipt() { return type == Type.READ; } }