Actually add fake contact ~1 minute after entering link

This commit is contained in:
Torsten Grote
2018-09-25 19:31:27 -03:00
parent ace2ea3c5b
commit bbc6907c1d
10 changed files with 358 additions and 48 deletions

View File

@@ -10,9 +10,31 @@ import org.briarproject.briar.api.conversation.ConversationManager.ConversationC
import java.nio.ByteBuffer;
import java.util.Collection;
@NotNullByDefault
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;
Collection<PendingContact> getPendingContacts() throws DbException;
class PendingContact {
private final String name;
private final long timestamp;
public PendingContact(String name, long timestamp) {
this.name = name;
this.timestamp = timestamp;
}
public String getName() {
return name;
}
public long getTimestamp() {
return timestamp;
}
}
/**
* The unique ID of the messaging client.
*/