mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
19 lines
437 B
Java
19 lines
437 B
Java
package org.briarproject.api.messaging;
|
|
|
|
import java.util.Collection;
|
|
|
|
/** A packet requesting one or more {@link Message}s from the recipient. */
|
|
public class Request {
|
|
|
|
private final Collection<MessageId> requested;
|
|
|
|
public Request(Collection<MessageId> requested) {
|
|
this.requested = requested;
|
|
}
|
|
|
|
/** Returns the identifiers of the requested messages. */
|
|
public Collection<MessageId> getMessageIds() {
|
|
return requested;
|
|
}
|
|
}
|