Class GenericNotification
java.lang.Object
com.caplin.motif.config.definitions.common.GenericNotification
@Generated("org.openapitools.codegen.languages.SpringCodegen")
public class GenericNotification
extends Object
GenericNotification
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Each of the notification types. -
Constructor Summary
ConstructorDescriptionGenericNotification
(GenericNotification.TypeEnum type, String dateTime, NotificationToken message) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionboolean
Optional token describing the notification category, it is used to display the category in the Front End notification.@NotNull String
An ISO-8601 date-time (`YYYY-MM-DD[T]HH:mm:ss`).@NotNull NotificationToken
Get messageGet messageHeaderOptional token describing the notification status, it is used to display the status in the front end, and it will be colored according to the type property.@NotNull GenericNotification.TypeEnum
getType()
Each of the notification types.int
hashCode()
message
(NotificationToken message) messageHeader
(NotificationToken messageHeader) void
setCategory
(String category) void
setDateTime
(String dateTime) void
setMessage
(NotificationToken message) void
setMessageHeader
(NotificationToken messageHeader) void
void
toString()
-
Constructor Details
-
GenericNotification
public GenericNotification() -
GenericNotification
public GenericNotification(GenericNotification.TypeEnum type, String dateTime, NotificationToken message) Constructor with only required parameters
-
-
Method Details
-
type
-
getType
Each of the notification types. The Front End will represent notifications based on their types (eg. Success will show a green Status and a tick icon).- Returns:
- type
-
setType
-
status
-
getStatus
Optional token describing the notification status, it is used to display the status in the front end, and it will be colored according to the type property. eg. notifications.status.cancelled will represent the CANCELLED status.- Returns:
- status
-
setStatus
-
dateTime
-
getDateTime
An ISO-8601 date-time (`YYYY-MM-DD[T]HH:mm:ss`).- Returns:
- dateTime
-
setDateTime
-
category
-
getCategory
Optional token describing the notification category, it is used to display the category in the Front End notification. eg. notifications.category.order will represent the ORDER category.- Returns:
- category
-
setCategory
-
messageHeader
-
getMessageHeader
Get messageHeader- Returns:
- messageHeader
-
setMessageHeader
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
equals
-
hashCode
public int hashCode() -
toString
-