Package com.caplin.motif.notifications
Class NotificationUtils
- java.lang.Object
-
- com.caplin.motif.notifications.NotificationUtils
-
public final class NotificationUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NOTIFICATION_FIELD_NAME
-
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)
-
-
-
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)
-
createMessageToken
public static NotificationToken createMessageToken(java.lang.String messageToken, java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
-
-