mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
45 lines
809 B
Java
45 lines
809 B
Java
package org.briarproject.android.contact;
|
|
|
|
import org.briarproject.api.sync.GroupId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
// This class is not thread-safe
|
|
class ConversationNoticeOutItem extends ConversationNoticeItem
|
|
implements ConversationItem.OutgoingItem {
|
|
|
|
private boolean sent, seen;
|
|
|
|
ConversationNoticeOutItem(MessageId id, GroupId groupId, String text,
|
|
long time, boolean sent, boolean seen) {
|
|
super(id, groupId, text, time);
|
|
|
|
this.sent = sent;
|
|
this.seen = seen;
|
|
}
|
|
|
|
@Override
|
|
int getType() {
|
|
return NOTICE_OUT;
|
|
}
|
|
|
|
@Override
|
|
public boolean isSent() {
|
|
return sent;
|
|
}
|
|
|
|
@Override
|
|
public void setSent(boolean sent) {
|
|
this.sent = sent;
|
|
}
|
|
|
|
@Override
|
|
public boolean isSeen() {
|
|
return seen;
|
|
}
|
|
|
|
@Override
|
|
public void setSeen(boolean seen) {
|
|
this.seen = seen;
|
|
}
|
|
}
|