mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
29 lines
718 B
Java
29 lines
718 B
Java
package net.sf.briar.api.db.event;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
|
|
import net.sf.briar.api.ContactId;
|
|
|
|
/**
|
|
* An event that is broadcast when the set of subscriptions visible to one or
|
|
* more contacts is updated.
|
|
*/
|
|
public class SubscriptionsUpdatedEvent extends DatabaseEvent {
|
|
|
|
private final Collection<ContactId> affectedContacts;
|
|
|
|
public SubscriptionsUpdatedEvent() {
|
|
affectedContacts = Collections.emptyList();
|
|
}
|
|
|
|
public SubscriptionsUpdatedEvent(Collection<ContactId> affectedContacts) {
|
|
this.affectedContacts = affectedContacts;
|
|
}
|
|
|
|
/** Returns the contacts affected by the update. */
|
|
public Collection<ContactId> getAffectedContacts() {
|
|
return affectedContacts;
|
|
}
|
|
}
|