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

    Constructors
    Constructor
    Description
    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 a NotificationUserResponseDTO 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 notificationApproveLink record component.
    Returns the value of the notificationData record component.
    callofproject.dev.nosql.enums.NotificationDataType
    Returns the value of the notificationDataType record component.
    Returns the value of the notificationImage record component.
    Returns the value of the notificationLink record component.
    Returns the value of the notificationRejectLink record component.
    Returns the value of the notificationTitle record component.
    callofproject.dev.nosql.enums.NotificationType
    Returns the value of the notificationType record component.
    Returns the value of the requestId 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

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a NotificationUserResponseDTO 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
      notificationImage - the value for the notificationImage record component
      notificationTitle - the value for the notificationTitle record component
      notificationApproveLink - the value for the notificationApproveLink record component
      notificationRejectLink - the value for the notificationRejectLink record component
      notificationDataType - the value for the notificationDataType record component
      requestId - the value for the requestId 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.nosql.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
    • notificationImage

      public String notificationImage()
      Returns the value of the notificationImage record component.
      Returns:
      the value of the notificationImage record component
    • notificationTitle

      public String notificationTitle()
      Returns the value of the notificationTitle record component.
      Returns:
      the value of the notificationTitle record component
    • notificationApproveLink

      public String notificationApproveLink()
      Returns the value of the notificationApproveLink record component.
      Returns:
      the value of the notificationApproveLink record component
    • notificationRejectLink

      public String notificationRejectLink()
      Returns the value of the notificationRejectLink record component.
      Returns:
      the value of the notificationRejectLink record component
    • notificationDataType

      public callofproject.dev.nosql.enums.NotificationDataType notificationDataType()
      Returns the value of the notificationDataType record component.
      Returns:
      the value of the notificationDataType record component
    • requestId

      public UUID requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component