Class GenericNotification
java.lang.Object
com.caplin.motif.config.definitions.common.GenericNotification
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
comments="Generator version: 7.4.0")
public class GenericNotification
extends Object
GenericNotification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEach of the notification types. -
Constructor Summary
ConstructorsConstructorDescriptionGenericNotification(GenericNotification.TypeEnum type, String dateTime, NotificationToken message) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional token describing the notification category, it is used to display the category in the Front End notification.@NotNull StringAn ISO-8601 date-time (`YYYY-MM-DD[T]HH:mm:ss`).@NotNull NotificationTokenGet 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.TypeEnumgetType()Each of the notification types.inthashCode()message(NotificationToken message) messageHeader(NotificationToken messageHeader) voidsetCategory(String category) voidsetDateTime(String dateTime) voidsetMessage(NotificationToken message) voidsetMessageHeader(NotificationToken messageHeader) voidvoidtoString()
-
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
-