mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Add sharing information to toolbar subtitle of blogs
The toolbar subtitle shows information about how many contacts the current blog is shared with and how many of those are online.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package org.briarproject.briar.api.sharing.event;
|
||||
|
||||
|
||||
import org.briarproject.bramble.api.contact.ContactId;
|
||||
import org.briarproject.bramble.api.event.Event;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.bramble.api.sync.GroupId;
|
||||
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
public class ShareableLeftEvent extends Event {
|
||||
|
||||
private final GroupId groupId;
|
||||
private final ContactId contactId;
|
||||
|
||||
public ShareableLeftEvent(GroupId groupId, ContactId contactId) {
|
||||
this.groupId = groupId;
|
||||
this.contactId = contactId;
|
||||
}
|
||||
|
||||
public GroupId getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public ContactId getContactId() {
|
||||
return contactId;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user