org.whispersystems.signalservice.api.messages.SignalServiceReceiptMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java
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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy