mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
19 lines
410 B
Java
19 lines
410 B
Java
package org.briarproject.api.sync;
|
|
|
|
import java.util.Collection;
|
|
|
|
/** A packet acknowledging receipt of one or more {@link Message Messages}. */
|
|
public class Ack {
|
|
|
|
private final Collection<MessageId> acked;
|
|
|
|
public Ack(Collection<MessageId> acked) {
|
|
this.acked = acked;
|
|
}
|
|
|
|
/** Returns the identifiers of the acknowledged messages. */
|
|
public Collection<MessageId> getMessageIds() {
|
|
return acked;
|
|
}
|
|
}
|