Class NotificationDTO
java.lang.Object
callofproject.dev.service.notification.dto.NotificationDTO
DTO class for notification user response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder 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.NotificationDataTypeGet notification data type.Get notification id.Get notification image.Get notification link.Get notification reject link.Get notification title.callofproject.dev.nosql.enums.NotificationTypeGet notification type.Get request id.Get to user id.voidsetCreatedAt(LocalDateTime createdAt) Set created at.voidsetFromUserId(UUID fromUserId) Set from user id.voidsetMessage(String message) Set message.voidsetNotificationApproveLink(String notificationApproveLink) Set notification approve link.voidsetNotificationData(Object notificationData) Set notification data.voidsetNotificationDataType(callofproject.dev.nosql.enums.NotificationDataType notificationDataType) Set notification data type.voidsetNotificationId(String notificationId) Set notification id.voidsetNotificationImage(String notificationImage) Set notification image.voidsetNotificationLink(String notificationLink) Set notification link.voidsetNotificationRejectLink(String notificationRejectLink) Set notification reject link.voidsetNotificationTitle(String notificationTitle) Set notification title.voidsetNotificationType(callofproject.dev.nosql.enums.NotificationType notificationType) Set notification type.voidsetRequestId(UUID requestId) Set request id.voidsetToUserId(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.
-