mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
33 lines
900 B
Java
33 lines
900 B
Java
package org.briarproject.api.privategroup;
|
|
|
|
import org.briarproject.api.clients.PostHeader;
|
|
import org.briarproject.api.identity.Author;
|
|
import org.briarproject.api.identity.Author.Status;
|
|
import org.briarproject.api.nullsafety.NotNullByDefault;
|
|
import org.briarproject.api.sync.GroupId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import javax.annotation.concurrent.Immutable;
|
|
|
|
@Immutable
|
|
@NotNullByDefault
|
|
public class GroupMessageHeader extends PostHeader {
|
|
|
|
private final GroupId groupId;
|
|
|
|
public GroupMessageHeader(GroupId groupId, MessageId id,
|
|
@Nullable MessageId parentId, long timestamp,
|
|
Author author, Status authorStatus, boolean read) {
|
|
super(id, parentId, timestamp, author, authorStatus, read);
|
|
this.groupId = groupId;
|
|
}
|
|
|
|
@NotNull
|
|
public GroupId getGroupId() {
|
|
return groupId;
|
|
}
|
|
|
|
}
|