com.github.fedorchuck.developers_notification
Enum DevelopersNotificationMessenger

java.lang.Object
  extended by java.lang.Enum<DevelopersNotificationMessenger>
      extended by com.github.fedorchuck.developers_notification.DevelopersNotificationMessenger
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DevelopersNotificationMessenger>

public enum DevelopersNotificationMessenger
extends java.lang.Enum<DevelopersNotificationMessenger>

Enum of available destinations where the message will be sent. Required environment configuration.

Since:
0.1.0
See Also:
https://fedorchuck.github.io/developers-notification/website/index.html#configuration

Volodymyr Fedorchuk


Enum Constant Summary
ALL_AVAILABLE
          Provide sending messages via Slack and Telegram messenger.
SLACK
          Provide sending messages via Slack messenger.
TELEGRAM
          Provide sending messages via Telegram messenger.
 
Method Summary
static DevelopersNotificationMessenger valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DevelopersNotificationMessenger[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SLACK

public static final DevelopersNotificationMessenger SLACK
Provide sending messages via Slack messenger.

Since:
0.1.0

TELEGRAM

public static final DevelopersNotificationMessenger TELEGRAM
Provide sending messages via Telegram messenger.

Since:
0.1.0

ALL_AVAILABLE

public static final DevelopersNotificationMessenger ALL_AVAILABLE
Provide sending messages via Slack and Telegram messenger.

Since:
0.1.0
Method Detail

values

public static DevelopersNotificationMessenger[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DevelopersNotificationMessenger c : DevelopersNotificationMessenger.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DevelopersNotificationMessenger valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null