mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
30 lines
715 B
Java
30 lines
715 B
Java
package org.briarproject.api.privategroup;
|
|
|
|
import org.briarproject.api.clients.BaseMessage;
|
|
import org.briarproject.api.identity.Author;
|
|
import org.briarproject.api.nullsafety.NotNullByDefault;
|
|
import org.briarproject.api.sync.Message;
|
|
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 GroupMessage extends BaseMessage {
|
|
|
|
private final Author author;
|
|
|
|
public GroupMessage(Message message, @Nullable MessageId parent,
|
|
Author author) {
|
|
super(message, parent);
|
|
this.author = author;
|
|
}
|
|
|
|
public Author getAuthor() {
|
|
return author;
|
|
}
|
|
|
|
}
|