Record Class NotificationUserResponseDTO
java.lang.Object
java.lang.Record
callofproject.dev.service.notification.dto.NotificationUserResponseDTO
public record NotificationUserResponseDTO(UUID toUserId, UUID fromUserId, String message, callofproject.dev.nosql.enums.NotificationType notificationType, Object notificationData, String notificationLink, String notificationImage, String notificationTitle, String notificationApproveLink, String notificationRejectLink, callofproject.dev.nosql.enums.NotificationDataType notificationDataType, UUID requestId)
extends Record
DTO class for notification user response.
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationUserResponseDTO
(UUID toUserId, UUID fromUserId, String message, callofproject.dev.nosql.enums.NotificationType notificationType, Object notificationData, String notificationLink, String notificationImage, String notificationTitle, String notificationApproveLink, String notificationRejectLink, callofproject.dev.nosql.enums.NotificationDataType notificationDataType, UUID requestId) Creates an instance of aNotificationUserResponseDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefromUserId
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.Returns the value of thenotificationApproveLink
record component.Returns the value of thenotificationData
record component.callofproject.dev.nosql.enums.NotificationDataType
Returns the value of thenotificationDataType
record component.Returns the value of thenotificationImage
record component.Returns the value of thenotificationLink
record component.Returns the value of thenotificationRejectLink
record component.Returns the value of thenotificationTitle
record component.callofproject.dev.nosql.enums.NotificationType
Returns the value of thenotificationType
record component.Returns the value of therequestId
record component.final String
toString()
Returns a string representation of this record class.toUserId()
Returns the value of thetoUserId
record component.
-
Constructor Details
-
NotificationUserResponseDTO
public NotificationUserResponseDTO(UUID toUserId, UUID fromUserId, String message, callofproject.dev.nosql.enums.NotificationType notificationType, Object notificationData, String notificationLink, String notificationImage, String notificationTitle, String notificationApproveLink, String notificationRejectLink, callofproject.dev.nosql.enums.NotificationDataType notificationDataType, UUID requestId) Creates an instance of aNotificationUserResponseDTO
record class.- Parameters:
toUserId
- the value for thetoUserId
record componentfromUserId
- the value for thefromUserId
record componentmessage
- the value for themessage
record componentnotificationType
- the value for thenotificationType
record componentnotificationData
- the value for thenotificationData
record componentnotificationLink
- the value for thenotificationLink
record componentnotificationImage
- the value for thenotificationImage
record componentnotificationTitle
- the value for thenotificationTitle
record componentnotificationApproveLink
- the value for thenotificationApproveLink
record componentnotificationRejectLink
- the value for thenotificationRejectLink
record componentnotificationDataType
- the value for thenotificationDataType
record componentrequestId
- the value for therequestId
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
toUserId
Returns the value of thetoUserId
record component.- Returns:
- the value of the
toUserId
record component
-
fromUserId
Returns the value of thefromUserId
record component.- Returns:
- the value of the
fromUserId
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
notificationType
public callofproject.dev.nosql.enums.NotificationType notificationType()Returns the value of thenotificationType
record component.- Returns:
- the value of the
notificationType
record component
-
notificationData
Returns the value of thenotificationData
record component.- Returns:
- the value of the
notificationData
record component
-
notificationLink
Returns the value of thenotificationLink
record component.- Returns:
- the value of the
notificationLink
record component
-
notificationImage
Returns the value of thenotificationImage
record component.- Returns:
- the value of the
notificationImage
record component
-
notificationTitle
Returns the value of thenotificationTitle
record component.- Returns:
- the value of the
notificationTitle
record component
-
notificationApproveLink
Returns the value of thenotificationApproveLink
record component.- Returns:
- the value of the
notificationApproveLink
record component
-
notificationRejectLink
Returns the value of thenotificationRejectLink
record component.- Returns:
- the value of the
notificationRejectLink
record component
-
notificationDataType
public callofproject.dev.nosql.enums.NotificationDataType notificationDataType()Returns the value of thenotificationDataType
record component.- Returns:
- the value of the
notificationDataType
record component
-
requestId
Returns the value of therequestId
record component.- Returns:
- the value of the
requestId
record component
-