com.github.fedorchuck.developers_notification.configuration
Class Messenger

java.lang.Object
  extended by com.github.fedorchuck.developers_notification.configuration.Messenger

public class Messenger
extends java.lang.Object

Part of configuration for this library.

Author: Volodymyr Fedorchuk

Since:
0.2.0

Constructor Summary
Messenger()
           
 
Method Summary
 java.lang.String getChannel()
          Return channel of integration
 DevelopersNotificationMessenger getName()
          Return name of integration
 java.lang.String getToken()
          Return token of integration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messenger

public Messenger()
Method Detail

getName

public DevelopersNotificationMessenger getName()
Return name of integration

Returns:
name for integration
Throws:
java.lang.IllegalArgumentException - if unable to map string to DevelopersNotificationMessenger
Since:
0.2.0

getToken

public java.lang.String getToken()
Return token of integration

Returns:
token for integration
Throws:
java.lang.IllegalArgumentException - if token is null or empty
Since:
0.2.0

getChannel

public java.lang.String getChannel()
Return channel of integration

Returns:
channel for integration
Throws:
java.lang.IllegalArgumentException - if channel is null or empty
Since:
0.2.0