mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Refactor Forum Activity and adapters to be re-used for private groups
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package org.briarproject.android.privategroup.conversation;
|
||||
|
||||
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;
|
||||
|
||||
class GroupMessageItem extends ThreadItem {
|
||||
|
||||
public GroupMessageItem(MessageId messageId, MessageId parentId,
|
||||
String text, long timestamp, Author author, Status status,
|
||||
boolean isRead) {
|
||||
super(messageId, parentId, text, timestamp, author, status, isRead);
|
||||
}
|
||||
|
||||
public GroupMessageItem(GroupMessageHeader h, String text) {
|
||||
this(h.getId(), h.getParentId(), text, h.getTimestamp(), h.getAuthor(),
|
||||
h.getAuthorStatus(), h.isRead());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user