Add a ConversationItemReceivedEvent

This commit is contained in:
str4d
2016-06-10 05:18:26 +00:00
parent 7a3bd86522
commit 1e8784efe9
7 changed files with 133 additions and 138 deletions

View File

@@ -0,0 +1,27 @@
package org.briarproject.api.event;
import org.briarproject.api.contact.ContactId;
import org.briarproject.api.conversation.ConversationItem;
/**
* An event that is broadcast when a new conversation item is received.
*/
public class ConversationItemReceivedEvent extends Event {
private final ConversationItem item;
private final ContactId contactId;
public ConversationItemReceivedEvent(ConversationItem item,
ContactId contactId) {
this.item = item;
this.contactId = contactId;
}
public ConversationItem getItem() {
return item;
}
public ContactId getContactId() {
return contactId;
}
}