Class NotificationUtils


  • public final class NotificationUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.caplin.datasource.notification.Notification createInfoNotification​(java.lang.String notificationId, java.time.Instant dateTime, java.lang.String message)  
      static NotificationToken createMessageToken​(java.lang.String messageToken, java.util.Map<java.lang.String,​DisplayFieldArgument> arguments)  
      static com.caplin.datasource.notification.Notification createOrderFilledNotification​(java.lang.String notificationId, java.time.Instant dateTime, java.lang.String buySell, FormattedAmount amount, java.lang.String currencyPair, java.lang.String dealtCurrency, FormattedRate filledRate, java.time.Instant date)  
      static com.caplin.datasource.notification.Notification createOrderStatusNotification​(java.lang.String notificationId, java.lang.String status, java.time.Instant dateTime)  
      static com.caplin.datasource.notification.Notification createWarningNotification​(java.lang.String notificationId, java.time.Instant dateTime, java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NOTIFICATION_FIELD_NAME

        public static final java.lang.String NOTIFICATION_FIELD_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • createOrderFilledNotification

        public static com.caplin.datasource.notification.Notification createOrderFilledNotification​(java.lang.String notificationId,
                                                                                                    java.time.Instant dateTime,
                                                                                                    java.lang.String buySell,
                                                                                                    FormattedAmount amount,
                                                                                                    java.lang.String currencyPair,
                                                                                                    java.lang.String dealtCurrency,
                                                                                                    FormattedRate filledRate,
                                                                                                    java.time.Instant date)
      • createOrderStatusNotification

        public static com.caplin.datasource.notification.Notification createOrderStatusNotification​(java.lang.String notificationId,
                                                                                                    java.lang.String status,
                                                                                                    java.time.Instant dateTime)
      • createInfoNotification

        public static com.caplin.datasource.notification.Notification createInfoNotification​(java.lang.String notificationId,
                                                                                             java.time.Instant dateTime,
                                                                                             java.lang.String message)
      • createWarningNotification

        public static com.caplin.datasource.notification.Notification createWarningNotification​(java.lang.String notificationId,
                                                                                                java.time.Instant dateTime,
                                                                                                java.lang.String message)