Skip to content
Snippets Groups Projects
Commit 2e81736a authored by Alexis Durgnat's avatar Alexis Durgnat :milky_way:
Browse files

Meeting events

parent 7669ff84
No related branches found
No related tags found
1 merge request!21*poof* final version
...@@ -3,7 +3,7 @@ import java.io.Serializable; ...@@ -3,7 +3,7 @@ import java.io.Serializable;
public final class Message implements Serializable { public final class Message implements Serializable {
public static enum Type { public static enum Type {
JoinedJourney, LeftJourney, ChatMessage JoinedJourney, LeftJourney, ChatMessage, Meeting
} }
private static final long serialVersionUID = 0xAEF34565673L; private static final long serialVersionUID = 0xAEF34565673L;
......
...@@ -80,6 +80,14 @@ public class MessageManager extends MessageQueue { ...@@ -80,6 +80,14 @@ public class MessageManager extends MessageQueue {
this.conditionalSubscribe(Message.Type.JoinedJourney, eventHandler, condition); 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 * Subscribe to LeftJourney events validating the condition
* @param eventHandler LeftJourney consumer * @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