mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
29 lines
659 B
Java
29 lines
659 B
Java
package org.briarproject.api.messaging;
|
|
|
|
import java.util.Collection;
|
|
|
|
/** A packet updating the recipient's view of the sender's subscriptions. */
|
|
public class SubscriptionUpdate {
|
|
|
|
private final Collection<Group> groups;
|
|
private final long version;
|
|
|
|
public SubscriptionUpdate(Collection<Group> groups, long version) {
|
|
this.groups = groups;
|
|
this.version = version;
|
|
}
|
|
|
|
/**
|
|
* Returns the groups to which the sender subscribes, and which the sender
|
|
* has made visible to the recipient.
|
|
*/
|
|
public Collection<Group> getGroups() {
|
|
return groups;
|
|
}
|
|
|
|
/** Returns the update's version number. */
|
|
public long getVersion() {
|
|
return version;
|
|
}
|
|
}
|