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 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 thenotificationData
record component.Returns the value of thenotificationLink
record component.callofproject.dev.data.common.enums.NotificationType
Returns the value of thenotificationType
record component.final String
toString()
Returns a string representation of this record class.toUserId()
Returns the value of thetoUserId
record 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 aNotificationDTO
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 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.data.common.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
-