mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Add a ConversationItemReceivedEvent
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user