-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change is making the slack session to listen to channel creation in order to have an up to date channel repository. Change-Id: I1e6cf7d101844bf43903e85558b39c719dc0ea15
- Loading branch information
Benoit Corne
committed
Apr 3, 2015
1 parent
9f02bd1
commit bcc8d47
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/main/java/com/ullink/slack/simpleslackapi/SlackChannelCreated.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,6 @@ | ||
package com.ullink.slack.simpleslackapi; | ||
|
||
public interface SlackChannelCreated | ||
{ | ||
SlackChannel getSlackChannel(); | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/ullink/slack/simpleslackapi/impl/SlackChannelCreatedImpl.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,21 @@ | ||
package com.ullink.slack.simpleslackapi.impl; | ||
|
||
import com.ullink.slack.simpleslackapi.SlackChannel; | ||
import com.ullink.slack.simpleslackapi.SlackChannelCreated; | ||
|
||
public class SlackChannelCreatedImpl implements SlackChannelCreated | ||
{ | ||
private SlackChannel slackChannel; | ||
|
||
SlackChannelCreatedImpl(SlackChannel slackChannel) | ||
{ | ||
this.slackChannel = slackChannel; | ||
} | ||
|
||
@Override | ||
public SlackChannel getSlackChannel() | ||
{ | ||
return slackChannel; | ||
} | ||
|
||
} |
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