Add a new event that is broadcasted when a contact is verified

Also, don't support unverifying contacts.
This commit is contained in:
Torsten Grote
2016-08-19 12:41:10 -03:00
parent e690bcb3cc
commit c3a14d9275
5 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
package org.briarproject.api.event;
import org.briarproject.api.contact.ContactId;
/** An event that is broadcast when a contact is verified. */
public class ContactVerifiedEvent extends Event {
private final ContactId contactId;
public ContactVerifiedEvent(ContactId contactId) {
this.contactId = contactId;
}
public ContactId getContactId() {
return contactId;
}
}