mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Add a ConversationItemReceivedEvent
This commit is contained in:
@@ -17,11 +17,6 @@ public interface ConversationManager {
|
||||
*/
|
||||
ClientId getClientId();
|
||||
|
||||
/**
|
||||
* Returns true if this is the id of a wrapped client.
|
||||
*/
|
||||
boolean isWrappedClient(ClientId clientId);
|
||||
|
||||
/**
|
||||
* Stores a local private message, and returns the corresponding item.
|
||||
*/
|
||||
|
||||
@@ -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