Private Group List

This commit is contained in:
Torsten Grote
2016-09-29 18:39:37 -03:00
parent 3ea36bbd40
commit b09e30a95f
39 changed files with 945 additions and 61 deletions

View File

@@ -0,0 +1,36 @@
package org.briarproject.api.event;
import org.briarproject.api.privategroup.GroupMessageHeader;
import org.briarproject.api.sync.GroupId;
/**
* An event that is broadcast when a private group message was added
* to the database.
*/
public class GroupMessageAddedEvent extends Event {
private final GroupId groupId;
private final GroupMessageHeader header;
private final boolean local;
public GroupMessageAddedEvent(GroupId groupId, GroupMessageHeader header,
boolean local) {
this.groupId = groupId;
this.header = header;
this.local = local;
}
public GroupId getGroupId() {
return groupId;
}
public GroupMessageHeader getHeader() {
return header;
}
public boolean isLocal() {
return local;
}
}