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 aNotificationUserResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromUserIdrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thenotificationApproveLinkrecord component.Returns the value of thenotificationDatarecord component.callofproject.dev.nosql.enums.NotificationDataTypeReturns the value of thenotificationDataTyperecord component.Returns the value of thenotificationImagerecord component.Returns the value of thenotificationLinkrecord component.Returns the value of thenotificationRejectLinkrecord component.Returns the value of thenotificationTitlerecord component.callofproject.dev.nosql.enums.NotificationTypeReturns the value of thenotificationTyperecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.toUserId()Returns the value of thetoUserIdrecord 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 aNotificationUserResponseDTOrecord class.- Parameters:
toUserId- the value for thetoUserIdrecord componentfromUserId- the value for thefromUserIdrecord componentmessage- the value for themessagerecord componentnotificationType- the value for thenotificationTyperecord componentnotificationData- the value for thenotificationDatarecord componentnotificationLink- the value for thenotificationLinkrecord componentnotificationImage- the value for thenotificationImagerecord componentnotificationTitle- the value for thenotificationTitlerecord componentnotificationApproveLink- the value for thenotificationApproveLinkrecord componentnotificationRejectLink- the value for thenotificationRejectLinkrecord componentnotificationDataType- the value for thenotificationDataTyperecord componentrequestId- the value for therequestIdrecord 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 thetoUserIdrecord component.- Returns:
- the value of the
toUserIdrecord component
-
fromUserId
Returns the value of thefromUserIdrecord component.- Returns:
- the value of the
fromUserIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
notificationType
public callofproject.dev.nosql.enums.NotificationType notificationType()Returns the value of thenotificationTyperecord component.- Returns:
- the value of the
notificationTyperecord component
-
notificationData
Returns the value of thenotificationDatarecord component.- Returns:
- the value of the
notificationDatarecord component
-
notificationLink
Returns the value of thenotificationLinkrecord component.- Returns:
- the value of the
notificationLinkrecord component
-
notificationImage
Returns the value of thenotificationImagerecord component.- Returns:
- the value of the
notificationImagerecord component
-
notificationTitle
Returns the value of thenotificationTitlerecord component.- Returns:
- the value of the
notificationTitlerecord component
-
notificationApproveLink
Returns the value of thenotificationApproveLinkrecord component.- Returns:
- the value of the
notificationApproveLinkrecord component
-
notificationRejectLink
Returns the value of thenotificationRejectLinkrecord component.- Returns:
- the value of the
notificationRejectLinkrecord component
-
notificationDataType
public callofproject.dev.nosql.enums.NotificationDataType notificationDataType()Returns the value of thenotificationDataTyperecord component.- Returns:
- the value of the
notificationDataTyperecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-