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:
Torsten Grote
2016-12-05 16:39:34 -02:00
parent 7df6abbcbe
commit d04dda1566
13 changed files with 411 additions and 13 deletions

View File

@@ -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;
}
}