mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Moved classes from messaging package to sync package.
This commit is contained in:
18
briar-api/src/org/briarproject/api/sync/Offer.java
Normal file
18
briar-api/src/org/briarproject/api/sync/Offer.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.briarproject.api.sync;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/** A packet offering the recipient one or more {@link Message}s. */
|
||||
public class Offer {
|
||||
|
||||
private final Collection<MessageId> offered;
|
||||
|
||||
public Offer(Collection<MessageId> offered) {
|
||||
this.offered = offered;
|
||||
}
|
||||
|
||||
/** Returns the identifiers of the offered messages. */
|
||||
public Collection<MessageId> getMessageIds() {
|
||||
return offered;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user