mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
32 lines
700 B
Java
32 lines
700 B
Java
package org.briarproject.android.contact;
|
|
|
|
import org.briarproject.api.introduction.IntroductionRequest;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
// This class is not thread-safe
|
|
abstract class ConversationIntroductionItem extends ConversationItem {
|
|
|
|
private final IntroductionRequest ir;
|
|
private boolean answered;
|
|
|
|
ConversationIntroductionItem(@NotNull IntroductionRequest ir) {
|
|
super(ir.getMessageId(), ir.getGroupId(), ir.getTimestamp());
|
|
|
|
this.ir = ir;
|
|
this.answered = ir.wasAnswered();
|
|
}
|
|
|
|
@NotNull
|
|
IntroductionRequest getIntroductionRequest() {
|
|
return ir;
|
|
}
|
|
|
|
boolean wasAnswered() {
|
|
return answered;
|
|
}
|
|
|
|
void setAnswered(boolean answered) {
|
|
this.answered = answered;
|
|
}
|
|
}
|