mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Added spinners for selecting which identity to use.
(Although it isn't possible to create an identity yet...)
This commit is contained in:
@@ -4,11 +4,14 @@ public class Contact {
|
||||
|
||||
private final ContactId id;
|
||||
private final Author author;
|
||||
private final AuthorId localAuthorId;
|
||||
private final long lastConnected;
|
||||
|
||||
public Contact(ContactId id, Author author, long lastConnected) {
|
||||
public Contact(ContactId id, Author author, AuthorId localAuthorId,
|
||||
long lastConnected) {
|
||||
this.id = id;
|
||||
this.author = author;
|
||||
this.localAuthorId = localAuthorId;
|
||||
this.lastConnected = lastConnected;
|
||||
}
|
||||
|
||||
@@ -20,6 +23,10 @@ public class Contact {
|
||||
return author;
|
||||
}
|
||||
|
||||
public AuthorId getLocalAuthorId() {
|
||||
return localAuthorId;
|
||||
}
|
||||
|
||||
public long getLastConnected() {
|
||||
return lastConnected;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,9 @@
|
||||
package net.sf.briar.api.db.event;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import net.sf.briar.api.messaging.MessageId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when one or messages expire from the database,
|
||||
* potentially changing the database's retention time.
|
||||
*/
|
||||
public class MessageExpiredEvent extends DatabaseEvent {
|
||||
|
||||
private final Collection<MessageId> expired;
|
||||
|
||||
public MessageExpiredEvent(Collection<MessageId> expired) {
|
||||
this.expired = expired;
|
||||
}
|
||||
|
||||
public Collection<MessageId> getMessageIds() {
|
||||
return expired;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user