Class NotificationDTO
java.lang.Object
callofproject.dev.service.notification.dto.NotificationDTO
DTO class for notification user response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for notification DTO. -
Method Summary
Modifier and TypeMethodDescriptionGet created at.Get from user id.Get message.Get notification approve link.Get notification data.callofproject.dev.nosql.enums.NotificationDataType
Get notification data type.Get notification id.Get notification image.Get notification link.Get notification reject link.Get notification title.callofproject.dev.nosql.enums.NotificationType
Get notification type.Get request id.Get to user id.void
setCreatedAt
(LocalDateTime createdAt) Set created at.void
setFromUserId
(UUID fromUserId) Set from user id.void
setMessage
(String message) Set message.void
setNotificationApproveLink
(String notificationApproveLink) Set notification approve link.void
setNotificationData
(Object notificationData) Set notification data.void
setNotificationDataType
(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Set notification data type.void
setNotificationId
(String notificationId) Set notification id.void
setNotificationImage
(String notificationImage) Set notification image.void
setNotificationLink
(String notificationLink) Set notification link.void
setNotificationRejectLink
(String notificationRejectLink) Set notification reject link.void
setNotificationTitle
(String notificationTitle) Set notification title.void
setNotificationType
(callofproject.dev.nosql.enums.NotificationType notificationType) Set notification type.void
setRequestId
(UUID requestId) Set request id.void
setToUserId
(UUID toUserId) Set to user id.
-
Method Details
-
getNotificationId
Get notification id.- Returns:
- String.
-
getRequestId
Get request id.- Returns:
- UUID.
-
getNotificationDataType
public callofproject.dev.nosql.enums.NotificationDataType getNotificationDataType()Get notification data type.- Returns:
- NotificationDataType.
-
getNotificationImage
Get notification image.- Returns:
- String.
-
getNotificationApproveLink
Get notification approve link.- Returns:
- String.
-
getNotificationRejectLink
Get notification reject link.- Returns:
- String.
-
getNotificationTitle
Get notification title.- Returns:
- String.
-
getCreatedAt
Get created at.- Returns:
- LocalDateTime.
-
setToUserId
Set to user id.- Parameters:
toUserId
- represent the to user id.
-
setNotificationId
Set notification id.- Parameters:
notificationId
- represent the notification id.
-
setFromUserId
Set from user id.- Parameters:
fromUserId
- represent the from user id.
-
setMessage
Set message.- Parameters:
message
- represent the message.
-
setNotificationImage
Set notification image.- Parameters:
notificationImage
- represent the notification image.
-
setNotificationTitle
Set notification title.- Parameters:
notificationTitle
- represent the notification title.
-
setCreatedAt
Set created at.- Parameters:
createdAt
- represent the created at.
-
setNotificationDataType
public void setNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Set notification data type.- Parameters:
notificationDataType
- represent the notification data type.
-
setRequestId
Set request id.- Parameters:
requestId
- represent the request id.
-
setNotificationApproveLink
Set notification approve link.- Parameters:
notificationApproveLink
- represent the notification approve link.
-
setNotificationRejectLink
Set notification reject link.- Parameters:
notificationRejectLink
- represent the notification reject link.
-
setNotificationType
public void setNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Set notification type.- Parameters:
notificationType
- represent the notification type.
-
setNotificationData
Set notification data.- Parameters:
notificationData
- represent the notification data.
-
setNotificationLink
Set notification link.- Parameters:
notificationLink
- represent the notification link.
-
getToUserId
Get to user id.- Returns:
- UUID.
-
getFromUserId
Get from user id.- Returns:
- UUID.
-
getMessage
Get message.- Returns:
- String.
-
getNotificationType
public callofproject.dev.nosql.enums.NotificationType getNotificationType()Get notification type.- Returns:
- NotificationType.
-
getNotificationData
Get notification data.- Returns:
- Object.
-
getNotificationLink
Get notification link.- Returns:
- String.
-