mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59: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.
37 lines
898 B
Java
37 lines
898 B
Java
package org.briarproject.api.introduction;
|
|
|
|
import org.briarproject.api.clients.SessionId;
|
|
import org.briarproject.api.identity.AuthorId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
public class IntroductionResponse extends IntroductionMessage {
|
|
|
|
private final AuthorId remoteAuthorId;
|
|
private final String name;
|
|
private final boolean accepted;
|
|
|
|
public IntroductionResponse(SessionId sessionId, MessageId messageId,
|
|
int role, long time, boolean local, boolean sent, boolean seen,
|
|
boolean read, AuthorId remoteAuthorId, String name,
|
|
boolean accepted) {
|
|
|
|
super(sessionId, messageId, role, time, local, sent, seen, read);
|
|
|
|
this.remoteAuthorId = remoteAuthorId;
|
|
this.name = name;
|
|
this.accepted = accepted;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public boolean wasAccepted() {
|
|
return accepted;
|
|
}
|
|
|
|
public AuthorId getRemoteAuthorId() {
|
|
return remoteAuthorId;
|
|
}
|
|
}
|