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.
69 lines
1.3 KiB
Java
69 lines
1.3 KiB
Java
package org.briarproject.api.introduction;
|
|
|
|
import org.briarproject.api.clients.SessionId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
import static org.briarproject.api.introduction.IntroductionConstants.ROLE_INTRODUCEE;
|
|
import static org.briarproject.api.introduction.IntroductionConstants.ROLE_INTRODUCER;
|
|
|
|
abstract public class IntroductionMessage {
|
|
|
|
private final SessionId sessionId;
|
|
private final MessageId messageId;
|
|
private final int role;
|
|
private final long time;
|
|
private final boolean local, sent, seen, read;
|
|
|
|
public IntroductionMessage(SessionId sessionId, MessageId messageId,
|
|
int role, long time, boolean local, boolean sent, boolean seen,
|
|
boolean read) {
|
|
|
|
this.sessionId = sessionId;
|
|
this.messageId = messageId;
|
|
this.role = role;
|
|
this.time = time;
|
|
this.local = local;
|
|
this.sent = sent;
|
|
this.seen = seen;
|
|
this.read = read;
|
|
}
|
|
|
|
public SessionId getSessionId() {
|
|
return sessionId;
|
|
}
|
|
|
|
public long getTime() {
|
|
return time;
|
|
}
|
|
|
|
public MessageId getMessageId() {
|
|
return messageId;
|
|
}
|
|
|
|
public boolean isLocal() {
|
|
return local;
|
|
}
|
|
|
|
public boolean isSent() {
|
|
return sent;
|
|
}
|
|
|
|
public boolean isSeen() {
|
|
return seen;
|
|
}
|
|
|
|
public boolean isRead() {
|
|
return read;
|
|
}
|
|
|
|
public boolean isIntroducer() {
|
|
return role == ROLE_INTRODUCER;
|
|
}
|
|
|
|
public boolean isIntroducee() {
|
|
return role == ROLE_INTRODUCEE;
|
|
}
|
|
|
|
}
|
|
|