mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Avoid DB lookups where possible.
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
package net.sf.briar.api.db.event;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.protocol.Transport;
|
||||
|
||||
/** An event that is broadcast when a contact's transports are updated. */
|
||||
public class RemoteTransportsUpdatedEvent extends DatabaseEvent {
|
||||
|
||||
private final ContactId contactId;
|
||||
private final Collection<Transport> transports;
|
||||
|
||||
public RemoteTransportsUpdatedEvent(ContactId contactId) {
|
||||
public RemoteTransportsUpdatedEvent(ContactId contactId,
|
||||
Collection<Transport> transports) {
|
||||
this.contactId = contactId;
|
||||
this.transports = transports;
|
||||
}
|
||||
|
||||
public ContactId getContactId() {
|
||||
return contactId;
|
||||
}
|
||||
|
||||
public Collection<Transport> getTransports() {
|
||||
return transports;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user