mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
39 lines
698 B
Java
39 lines
698 B
Java
package org.briarproject.android.contact;
|
|
|
|
import org.briarproject.api.messaging.PrivateMessageHeader;
|
|
import org.briarproject.api.messaging.PrivateMessageHeader.Status;
|
|
|
|
// This class is not thread-safe
|
|
class ConversationItem {
|
|
|
|
private final PrivateMessageHeader header;
|
|
private byte[] body;
|
|
private Status status;
|
|
|
|
ConversationItem(PrivateMessageHeader header) {
|
|
this.header = header;
|
|
body = null;
|
|
status = header.getStatus();
|
|
}
|
|
|
|
PrivateMessageHeader getHeader() {
|
|
return header;
|
|
}
|
|
|
|
byte[] getBody() {
|
|
return body;
|
|
}
|
|
|
|
void setBody(byte[] body) {
|
|
this.body = body;
|
|
}
|
|
|
|
Status getStatus() {
|
|
return status;
|
|
}
|
|
|
|
void setStatus(Status status) {
|
|
this.status = status;
|
|
}
|
|
}
|