forked from Code4SocialGood/c4sg-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slack Chat PR Code4SocialGood#37 review Changes
Slack Chat - Whether User Joined Slack Room Code4SocialGood#24 Code4SocialGood#37 review changes
- Loading branch information
Showing
5 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
21 changes: 11 additions & 10 deletions
21
src/main/java/org/c4sg/constant/slack/SlackWebApiConstants.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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
package org.c4sg.constant.slack; | ||
|
||
public interface SlackWebApiConstants { | ||
public enum SlackWebApiConstants { | ||
|
||
String SLACK_WEB_API_URL = "https://slack.com/api"; | ||
String SLACK_WEB_API_DOCUMENT_URL = "https://api.slack.com/methods"; | ||
String SLACK_AUTH_TOKEN = "xoxp-157046850982-155658879760-157047222166-ef8e3bfdcd68c01c0bcab801296f112d"; | ||
USERS_LIST("users.list"); | ||
|
||
int DEFAULT_TIMEOUT = 5000; | ||
int DEFAULT_COUNT = 100; | ||
int DEFAULT_PAGE = 1; | ||
|
||
// users | ||
String USERS_LIST = "users.list"; | ||
private String value; | ||
|
||
SlackWebApiConstants(String value) { | ||
this.value=value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
} |
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
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
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
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