Record Class TicketDTO
java.lang.Object
java.lang.Record
callofproject.dev.service.ticket.dto.TicketDTO
public record TicketDTO(String id, UUID userId, UUID adminId, String adminUsername, String username, String userEmail, String title, LocalDate feedbackDeadline, LocalDate answeredDate, LocalDate createdDate, String description, callofproject.dev.service.ticket.entity.TicketStatus status)
extends Record
The ticket data transfer object.
CopyRight(C) 2023 by Call Of Project Teams.
-
Constructor Summary
ConstructorsConstructorDescriptionTicketDTO(String id, UUID userId, UUID adminId, String adminUsername, String username, String userEmail, String title, LocalDate feedbackDeadline, LocalDate answeredDate, LocalDate createdDate, String description, callofproject.dev.service.ticket.entity.TicketStatus status) Creates an instance of aTicketDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadminId()Returns the value of theadminIdrecord component.Returns the value of theadminUsernamerecord component.Returns the value of theansweredDaterecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeedbackDeadlinerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.callofproject.dev.service.ticket.entity.TicketStatusstatus()Returns the value of thestatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserEmailrecord component.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
TicketDTO
public TicketDTO(String id, UUID userId, UUID adminId, String adminUsername, String username, String userEmail, String title, LocalDate feedbackDeadline, LocalDate answeredDate, LocalDate createdDate, String description, callofproject.dev.service.ticket.entity.TicketStatus status) Creates an instance of aTicketDTOrecord class.- Parameters:
id- the value for theidrecord componentuserId- the value for theuserIdrecord componentadminId- the value for theadminIdrecord componentadminUsername- the value for theadminUsernamerecord componentusername- the value for theusernamerecord componentuserEmail- the value for theuserEmailrecord componenttitle- the value for thetitlerecord componentfeedbackDeadline- the value for thefeedbackDeadlinerecord componentansweredDate- the value for theansweredDaterecord componentcreatedDate- the value for thecreatedDaterecord componentdescription- the value for thedescriptionrecord componentstatus- the value for thestatusrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
adminId
Returns the value of theadminIdrecord component.- Returns:
- the value of the
adminIdrecord component
-
adminUsername
Returns the value of theadminUsernamerecord component.- Returns:
- the value of the
adminUsernamerecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
userEmail
Returns the value of theuserEmailrecord component.- Returns:
- the value of the
userEmailrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
feedbackDeadline
Returns the value of thefeedbackDeadlinerecord component.- Returns:
- the value of the
feedbackDeadlinerecord component
-
answeredDate
Returns the value of theansweredDaterecord component.- Returns:
- the value of the
answeredDaterecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
status
public callofproject.dev.service.ticket.entity.TicketStatus status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-