Class Notifications

java.lang.Object
com.netlang.notification.Notifications

public class Notifications extends Object
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 Details

    • Notifications

      public Notifications()
  • Method Details

    • listChannels

      public static List<String> listChannels()
      List all available channels in the current company.
      Returns:
      A list with channel names
    • notify

      public static boolean notify(String channel, String title, String message, int severity)
      Send a new notification on the specified channel
      Parameters:
      channel - the channel name
      title - the title of the message
      message - the message body, max 4000 chars
      severity - the severity as an int
      Returns:
      true if succeeded
    • clearChannel

      public static void clearChannel(String channel)
      Remove all notifications from the specified channel.
      Parameters:
      channel -