Files
briar/briar-api/src/org/briarproject/api/clients/MessageTree.java
Torsten Grote e1bdede4f5 Introduce client layer events for forums
The forum UI depended on sync layer events such as MessageStateChangedEvent.
Now, the forum client broadcasts its own high-level event (`ForumPostReceivedEvent`)
with the information the UI needs (`ForumPostHeader`).

Closes #310
2016-07-29 15:16:52 -03:00

23 lines
460 B
Java

package org.briarproject.api.clients;
import org.briarproject.api.sync.MessageId;
import java.util.Collection;
import java.util.Comparator;
public interface MessageTree<T extends MessageTree.MessageNode> {
void add(Collection<T> nodes);
void add(T node);
void setComparator(Comparator<T> comparator);
void clear();
Collection<T> depthFirstOrder();
interface MessageNode {
MessageId getId();
MessageId getParentId();
long getTimestamp();
}
}