Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Javadoc attachment #40

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,24 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.5</java.version>
<gson.version>2.3.1</gson.version>
<java.version>1.8</java.version>
<gson.version>2.8.2</gson.version>

<!-- Plugi dependencies -->
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>

</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
Expand All @@ -84,7 +92,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -98,7 +106,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -112,7 +120,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<version>${maven-release-plugin.version}</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
Expand All @@ -139,7 +147,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
29 changes: 27 additions & 2 deletions src/main/java/net/gpedro/integrations/slack/SlackActionType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,40 @@
* @author Galimov Ruslan
*/
public enum SlackActionType {
BUTTON("button"), SELECT("select");

/**
* You can add simple click buttons actions to your message.
*
* See https://api.slack.com/docs/message-buttons for more
*/
BUTTON("button"),

/**
* Instead of buttons, users encounter drop downs, each containing a series
* of options: perhaps a list of fellow members, a list of Slack channels,
* or a simple list of actions you provide while creating the message.
* Message menus can even be dynamically populated with options based
* on your server's response.
*
* See https://api.slack.com/docs/message-menus for more.
*/
SELECT("select");

private String code;

SlackActionType(String code) {
this.code = code;
}

public String getCode() {
/**
* Get the code of the action type. They typpically are
* <ul>
* <li>button
* <li>select
* </ul>
* @return code
*/
public String getCode() {
return code;
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/gpedro/integrations/slack/SlackApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public SlackApi(String service, int timeout, Proxy proxy) {

/**
* Prepare Message and send to Slack
* @param message The message to be set
*/
public void call(SlackMessage message) {
if (message != null) {
Expand Down
Loading