Package com.netlang.notification
Class Notifications
java.lang.Object
com.netlang.notification.Notifications
Class for handling Notifications and it's channels.
Example, send a notification with one line:
Notifications.notify("test.ev","My Title","Hello world from Notifications!",0);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearChannel(String channel) Remove all notifications from the specified channel.List all available channels in the current company.static booleanSend a new notification on the specified channel
-
Constructor Details
-
Notifications
public Notifications()
-
-
Method Details
-
listChannels
List all available channels in the current company.- Returns:
- A list with channel names
-
notify
Send a new notification on the specified channel- Parameters:
channel- the channel nametitle- the title of the messagemessage- the message body, max 4000 charsseverity- the severity as an int- Returns:
- true if succeeded
-
clearChannel
Remove all notifications from the specified channel.- Parameters:
channel-
-