mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
36 lines
1.0 KiB
Java
36 lines
1.0 KiB
Java
package org.briarproject.android.privategroup.conversation;
|
|
|
|
import android.support.annotation.LayoutRes;
|
|
import android.support.annotation.UiThread;
|
|
|
|
import org.briarproject.R;
|
|
import org.briarproject.android.threaded.ThreadItem;
|
|
import org.briarproject.api.identity.Author;
|
|
import org.briarproject.api.identity.Author.Status;
|
|
import org.briarproject.api.privategroup.GroupMessageHeader;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
import javax.annotation.concurrent.NotThreadSafe;
|
|
|
|
@UiThread
|
|
@NotThreadSafe
|
|
class GroupMessageItem extends ThreadItem {
|
|
|
|
private GroupMessageItem(MessageId messageId, MessageId parentId,
|
|
String text, long timestamp, Author author, Status status,
|
|
boolean isRead) {
|
|
super(messageId, parentId, text, timestamp, author, status, isRead);
|
|
}
|
|
|
|
GroupMessageItem(GroupMessageHeader h, String text) {
|
|
this(h.getId(), h.getParentId(), text, h.getTimestamp(), h.getAuthor(),
|
|
h.getAuthorStatus(), h.isRead());
|
|
}
|
|
|
|
@LayoutRes
|
|
public int getLayout() {
|
|
return R.layout.list_item_thread;
|
|
}
|
|
|
|
}
|