mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
30 lines
650 B
Java
30 lines
650 B
Java
package org.briarproject.android.contact;
|
|
|
|
import org.briarproject.api.introduction.IntroductionRequest;
|
|
|
|
// This class is not thread-safe
|
|
abstract class ConversationIntroductionItem extends ConversationItem {
|
|
|
|
private final IntroductionRequest ir;
|
|
private boolean answered;
|
|
|
|
public ConversationIntroductionItem(IntroductionRequest ir) {
|
|
super(ir.getMessageId(), ir.getTimestamp());
|
|
|
|
this.ir = ir;
|
|
this.answered = ir.wasAnswered();
|
|
}
|
|
|
|
public IntroductionRequest getIntroductionRequest() {
|
|
return ir;
|
|
}
|
|
|
|
public boolean wasAnswered() {
|
|
return answered;
|
|
}
|
|
|
|
public void setAnswered(boolean answered) {
|
|
this.answered = answered;
|
|
}
|
|
}
|