Record Class NotificationDTO
java.lang.Object
java.lang.Record
callofproject.dev.service.ticket.dto.NotificationDTO
public record NotificationDTO(UUID toUserId, UUID fromUserId, String message, callofproject.dev.data.common.enums.NotificationType notificationType, Object notificationData, String notificationLink)
extends Record
Represents the notification DTO.
CopyRight(C) 2023 by Call Of Project Teams.
-
Constructor Summary
Constructors -
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 thenotificationDatarecord component.Returns the value of thenotificationLinkrecord component.callofproject.dev.data.common.enums.NotificationTypeReturns the value of thenotificationTyperecord component.final StringtoString()Returns a string representation of this record class.toUserId()Returns the value of thetoUserIdrecord component.
-
Constructor Details
-
NotificationDTO
public NotificationDTO(UUID toUserId, UUID fromUserId, String message, callofproject.dev.data.common.enums.NotificationType notificationType, Object notificationData, String notificationLink) Creates an instance of aNotificationDTOrecord 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 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.data.common.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
-