mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Moved classes from messaging package to sync package.
This commit is contained in:
18
briar-api/src/org/briarproject/api/sync/Request.java
Normal file
18
briar-api/src/org/briarproject/api/sync/Request.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.briarproject.api.sync;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/** A packet requesting one or more {@link Message}s 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user