mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
21 lines
522 B
Java
21 lines
522 B
Java
package org.briarproject.api.sync;
|
|
|
|
import java.util.Collection;
|
|
|
|
/**
|
|
* A packet requesting one or more {@link Message Messages} from the recipient.
|
|
*/
|
|
public class Request {
|
|
|
|
private final Collection<org.briarproject.api.sync.MessageId> requested;
|
|
|
|
public Request(Collection<org.briarproject.api.sync.MessageId> requested) {
|
|
this.requested = requested;
|
|
}
|
|
|
|
/** Returns the identifiers of the requested messages. */
|
|
public Collection<org.briarproject.api.sync.MessageId> getMessageIds() {
|
|
return requested;
|
|
}
|
|
}
|