This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored internal CDI events fired by ActiveUser
- Loading branch information
1 parent
8e621f1
commit f9017d2
Showing
7 changed files
with
61 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
Web/src/main/java/org/emerjoin/hi/web/events/sse/AbstractChannelEvent.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Web/src/main/java/org/emerjoin/hi/web/events/sse/ChannelJoinEvent.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
Web/src/main/java/org/emerjoin/hi/web/events/sse/ChannelQuitEvent.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
Web/src/main/java/org/emerjoin/hi/web/events/sse/JoinChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.emerjoin.hi.web.events.sse; | ||
|
||
import org.emerjoin.hi.web.ActiveUser; | ||
|
||
/** | ||
* @author Mario Junior. | ||
*/ | ||
public class JoinChannel extends UserSubscriptionEvent { | ||
|
||
public JoinChannel(ActiveUser user, String channel) { | ||
super(user, channel); | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
Web/src/main/java/org/emerjoin/hi/web/events/sse/QuitChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.emerjoin.hi.web.events.sse; | ||
|
||
import org.emerjoin.hi.web.ActiveUser; | ||
|
||
/** | ||
* @author Mario Junior. | ||
*/ | ||
public class QuitChannel extends UserSubscriptionEvent { | ||
|
||
public QuitChannel(ActiveUser user, String channel) { | ||
super(user, channel); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Web/src/main/java/org/emerjoin/hi/web/events/sse/UserSubscriptionEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.emerjoin.hi.web.events.sse; | ||
|
||
import org.emerjoin.hi.web.ActiveUser; | ||
import org.emerjoin.hi.web.events.HiEvent; | ||
|
||
/** | ||
* @author Mario Junior. | ||
*/ | ||
public abstract class UserSubscriptionEvent extends HiEvent { | ||
|
||
private ActiveUser user; | ||
private String channel; | ||
|
||
public UserSubscriptionEvent(ActiveUser user, String channel){ | ||
this.user = user; | ||
this.channel = channel; | ||
} | ||
|
||
public ActiveUser getUser() { | ||
return user; | ||
} | ||
|
||
public String getChannel() { | ||
return channel; | ||
} | ||
} |