mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Changed the root package from net.sf.briar to org.briarproject.
This commit is contained in:
18
briar-api/src/org/briarproject/api/messaging/Request.java
Normal file
18
briar-api/src/org/briarproject/api/messaging/Request.java
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user