Skip to content
Snippets Groups Projects
Verified Commit 215d97bf authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

Merge remote-tracking branch 'origin/devel' into devel

parents 630c7fea 2e81736a
Branches
No related tags found
1 merge request!21*poof* final version
......@@ -3,7 +3,7 @@ import java.io.Serializable;
public final class Message implements Serializable {
public static enum Type {
JoinedJourney, LeftJourney, ChatMessage
JoinedJourney, LeftJourney, ChatMessage, Meeting
}
private static final long serialVersionUID = 0xAEF34565673L;
......
......@@ -80,6 +80,14 @@ public class MessageManager extends MessageQueue {
this.conditionalSubscribe(Message.Type.JoinedJourney, eventHandler, condition);
}
/**
* Subscribe to Meetings events
* @param eventHandler Meeting consumer
* @param condition Meeting predicate
*/
public void conditionalSubscribeMeeting(Consumer<Meeting> eventHandler, Predicate<Meeting> condition) {
this.conditionalSubscribe(Message.Type.Meeting, eventHandler, condition);
}
/**
* Subscribe to LeftJourney events validating the condition
* @param eventHandler LeftJourney consumer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment