Class NotificationUtils

java.lang.Object
com.caplin.motif.notifications.NotificationUtils

public final class NotificationUtils extends Object
  • Field Details

  • Method Details

    • createNotification

      public static com.caplin.datasource.notification.Notification createNotification(String notificationId, GenericNotification genericNotification) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createOrderFilledNotification

      public static com.caplin.datasource.notification.Notification createOrderFilledNotification(String notificationId, Instant dateTime, BuySell buySell, FormattedAmount amount, String currencyPair, String dealtCurrency, FormattedRate filledRate) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createOrderStatusNotification

      public static com.caplin.datasource.notification.Notification createOrderStatusNotification(String notificationId, String status, Instant dateTime) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createInfoNotification

      public static com.caplin.datasource.notification.Notification createInfoNotification(String notificationId, Instant dateTime, String message) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createWarningNotification

      public static com.caplin.datasource.notification.Notification createWarningNotification(String notificationId, Instant dateTime, String message) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createMessageToken

      public static NotificationToken createMessageToken(String messageToken, Map<String,DisplayFieldArgument> arguments)