mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
This commit replaces the old ForumSharingManagerImpl with a new one which is based on state machines and the ProtocolEngine. There is a SharerEngine and a InviteeEngine that take care of state transitions, messages, events and trigger actions to be carried out by the ForumSharingManagerImpl. This is all very similar to the Introduction Client. The general sharing paradigm has been changed from sharing as a state to sharing as an action. Now the UI can allow users to invite contacts to forums. The contacts can accept or decline the invitiation. Also, the Forum Sharing Manger is notified when users leave a forum. Closes #322
21 lines
472 B
Java
21 lines
472 B
Java
package org.briarproject.api.messaging;
|
|
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
public class PrivateMessageHeader extends BaseMessage {
|
|
|
|
private final String contentType;
|
|
|
|
public PrivateMessageHeader(MessageId id, long timestamp,
|
|
String contentType, boolean local, boolean read, boolean sent,
|
|
boolean seen) {
|
|
|
|
super(id, timestamp, local, read, sent, seen);
|
|
this.contentType = contentType;
|
|
}
|
|
|
|
public String getContentType() {
|
|
return contentType;
|
|
}
|
|
}
|