Package com.dzidzi.dto.notification
Class Notification
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.notification.Notification
Represents a notification of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNotification(UUID id, UUID recipientId, String recipientUsername, String message, NotificationType type, long createdOn, long readOn, NotificationStatus status, String link) -
Method Summary
Modifier and TypeMethodDescriptionstatic Notification.Builderbuilder()longThe timestamp the notification was created.getLink()The link to use to get to the notification object.The notification messagelongThe timestamp the notification was read.The id of the user the notification is sent to.The username of the user the notification is sent to.The status of the notification.getType()
-
Constructor Details
-
Notification
public Notification(UUID id, UUID recipientId, String recipientUsername, String message, NotificationType type, long createdOn, long readOn, NotificationStatus status, String link)
-
-
Method Details
-
builder
-
getRecipientId
The id of the user the notification is sent to. This can be the id of an Admin, Courier, Restaurant, Customer Service and a User. -
getRecipientUsername
The username of the user the notification is sent to. This can be the username of an Admin, Courier, Restaurant, Customer Service and a User. -
getMessage
The notification message -
getCreatedOn
public long getCreatedOn()The timestamp the notification was created. -
getReadOn
public long getReadOn()The timestamp the notification was read. -
getStatus
The status of the notification. -
getType
-
getLink
The link to use to get to the notification object.
-