mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
Improvements for second testing round
This commit is contained in:
@@ -16,15 +16,16 @@ import java.util.Collection;
|
||||
public interface MessagingManager extends ConversationClient {
|
||||
|
||||
// TODO remove (only for prototype)
|
||||
void addNewPendingContact(String name, long timestamp) throws DbException;
|
||||
void removePendingContact(String name, long timestamp) throws DbException;
|
||||
void addNewPendingContact(String name, long timestamp, long addAt) throws DbException;
|
||||
ContactId removePendingContact(String name, long timestamp, long addAt) throws DbException;
|
||||
Collection<PendingContact> getPendingContacts() throws DbException;
|
||||
class PendingContact {
|
||||
private final String name;
|
||||
private final long timestamp;
|
||||
public PendingContact(String name, long timestamp) {
|
||||
private final long timestamp, addAt;
|
||||
public PendingContact(String name, long timestamp, long addAt) {
|
||||
this.name = name;
|
||||
this.timestamp = timestamp;
|
||||
this.addAt = addAt;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
@@ -32,6 +33,9 @@ public interface MessagingManager extends ConversationClient {
|
||||
public long getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
public long getAddAt() {
|
||||
return addAt;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user