mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Create GroupDissolvedEvent and react to it
Also react to incoming group invitations
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import org.briarproject.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.api.sync.GroupId;
|
||||
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when a private group was dissolved
|
||||
* by a remote creator.
|
||||
*/
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
public class GroupDissolvedEvent extends Event {
|
||||
|
||||
private final GroupId groupId;
|
||||
|
||||
public GroupDissolvedEvent(GroupId groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public GroupId getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user