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
    Constructor
    Description
    NotificationDTO(UUID toUserId, UUID fromUserId, String message, callofproject.dev.data.common.enums.NotificationType notificationType, Object notificationData, String notificationLink)
    Creates an instance of a NotificationDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fromUserId record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the message record component.
    Returns the value of the notificationData record component.
    Returns the value of the notificationLink record component.
    callofproject.dev.data.common.enums.NotificationType
    Returns the value of the notificationType record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the toUserId record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 a NotificationDTO record class.
      Parameters:
      toUserId - the value for the toUserId record component
      fromUserId - the value for the fromUserId record component
      message - the value for the message record component
      notificationType - the value for the notificationType record component
      notificationData - the value for the notificationData record component
      notificationLink - the value for the notificationLink record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • toUserId

      public UUID toUserId()
      Returns the value of the toUserId record component.
      Returns:
      the value of the toUserId record component
    • fromUserId

      public UUID fromUserId()
      Returns the value of the fromUserId record component.
      Returns:
      the value of the fromUserId record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • notificationType

      public callofproject.dev.data.common.enums.NotificationType notificationType()
      Returns the value of the notificationType record component.
      Returns:
      the value of the notificationType record component
    • notificationData

      public Object notificationData()
      Returns the value of the notificationData record component.
      Returns:
      the value of the notificationData record component
    • notificationLink

      public String notificationLink()
      Returns the value of the notificationLink record component.
      Returns:
      the value of the notificationLink record component