Added new database events to support updating the UI.

This commit is contained in:
akwizgran
2013-03-11 17:33:28 +00:00
parent 4c56f8d027
commit 89087a32c3
4 changed files with 47 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
package net.sf.briar.api.db.event;
import net.sf.briar.api.messaging.GroupId;
/** An event that is broadcast when the user subscribes to a group. */
public class SubscriptionAddedEvent extends DatabaseEvent {
private final GroupId groupId;
public SubscriptionAddedEvent(GroupId groupId) {
this.groupId = groupId;
}
public GroupId getGroupId() {
return groupId;
}
}

View File

@@ -0,0 +1,17 @@
package net.sf.briar.api.db.event;
import net.sf.briar.api.messaging.GroupId;
/** An event that is broadcast when the user unsubscribes from a group. */
public class SubscriptionRemovedEvent extends DatabaseEvent {
private final GroupId groupId;
public SubscriptionRemovedEvent(GroupId groupId) {
this.groupId = groupId;
}
public GroupId getGroupId() {
return groupId;
}
}