mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Methods for creating, adding and removing forums have been moved to the `ForumManager`. In order to still handle removing forums properly, a `RemoveForumHook` has been introduced. Methods for sharing forums with all current and future contacts have been removed along with the localGroup where this information was saved. The `ShareForumActivity` now has the proper label. The `SessionId` and the `ProtocolEngine` have been moved to the `clients` package. This addresses part of #322 and part of what has been discussed in #320.
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package org.briarproject.api.introduction;
|
|
|
|
import org.briarproject.api.FormatException;
|
|
import org.briarproject.api.clients.SessionId;
|
|
import org.briarproject.api.contact.Contact;
|
|
import org.briarproject.api.contact.ContactId;
|
|
import org.briarproject.api.db.DbException;
|
|
import org.briarproject.api.sync.ClientId;
|
|
|
|
import java.util.Collection;
|
|
|
|
public interface IntroductionManager {
|
|
|
|
/** Returns the unique ID of the introduction client. */
|
|
ClientId getClientId();
|
|
|
|
/**
|
|
* sends two initial introduction messages
|
|
*/
|
|
void makeIntroduction(Contact c1, Contact c2, String msg,
|
|
final long timestamp)
|
|
throws DbException, FormatException;
|
|
|
|
/**
|
|
* Accept an introduction that had been made
|
|
*/
|
|
void acceptIntroduction(final ContactId contactId,
|
|
final SessionId sessionId, final long timestamp)
|
|
throws DbException, FormatException;
|
|
|
|
/**
|
|
* Decline an introduction that had been made
|
|
*/
|
|
void declineIntroduction(final ContactId contactId,
|
|
final SessionId sessionId, final long timestamp)
|
|
throws DbException, FormatException;
|
|
|
|
/**
|
|
* Get all introduction messages for the contact with this contactId
|
|
*/
|
|
Collection<IntroductionMessage> getIntroductionMessages(ContactId contactId)
|
|
throws DbException;
|
|
|
|
}
|