Record Class AssignmentDetailResponse
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.response.AssignmentDetailResponse
- Record Components:
id- the assignment database IDcourseId- the owning course IDcourseName- the owning course display namecourseCode- the owning course codecourseColor- the owning course UI colorsyncedTitle- the title imported from the LMS feedcustomTitle- the user-defined title override, if anydisplayTitle- the resolved title shown in the UIsyncedDescription- the description imported from the LMS feedcustomDescription- the user-defined description override, if anydisplayDescription- the resolved description shown in the UIsyncedDueDate- the due date imported from the LMS feedcustomDueDate- the user-defined due date override, if anydisplayDueDate- the resolved due date shown in the UIsyncedDueTime- the due time imported from the LMS feedcustomDueTime- the user-defined due time override, if anydisplayDueTime- the resolved due time shown in the UIpriority- the assignment priority levelcompleted- whether the assignment is marked completearchived- whether the assignment is archivednoteContent- the user's note text associated with the assignmentupdatedAt- timestamp of the last assignment update
public record AssignmentDetailResponse(Long id, Long courseId, String courseName, String courseCode, String courseColor, String syncedTitle, String customTitle, String displayTitle, String syncedDescription, String customDescription, String displayDescription, LocalDate syncedDueDate, LocalDate customDueDate, LocalDate displayDueDate, LocalTime syncedDueTime, LocalTime customDueTime, LocalTime displayDueTime, Assignment.AssignmentPriority priority, boolean completed, boolean archived, String noteContent, Instant updatedAt)
extends Record
Detailed assignment view including synced, custom, and resolved display fields.
-
Constructor Summary
ConstructorsConstructorDescriptionAssignmentDetailResponse(Long id, Long courseId, String courseName, String courseCode, String courseColor, String syncedTitle, String customTitle, String displayTitle, String syncedDescription, String customDescription, String displayDescription, LocalDate syncedDueDate, LocalDate customDueDate, LocalDate displayDueDate, LocalTime syncedDueTime, LocalTime customDueTime, LocalTime displayDueTime, Assignment.AssignmentPriority priority, boolean completed, boolean archived, String noteContent, Instant updatedAt) Creates an instance of aAssignmentDetailResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanarchived()Returns the value of thearchivedrecord component.booleanReturns the value of thecompletedrecord component.Returns the value of thecourseCoderecord component.Returns the value of thecourseColorrecord component.courseId()Returns the value of thecourseIdrecord component.Returns the value of thecourseNamerecord component.Returns the value of thecustomDescriptionrecord component.Returns the value of thecustomDueDaterecord component.Returns the value of thecustomDueTimerecord component.Returns the value of thecustomTitlerecord component.Returns the value of thedisplayDescriptionrecord component.Returns the value of thedisplayDueDaterecord component.Returns the value of thedisplayDueTimerecord component.Returns the value of thedisplayTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thenoteContentrecord component.priority()Returns the value of thepriorityrecord component.Returns the value of thesyncedDescriptionrecord component.Returns the value of thesyncedDueDaterecord component.Returns the value of thesyncedDueTimerecord component.Returns the value of thesyncedTitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
AssignmentDetailResponse
public AssignmentDetailResponse(Long id, Long courseId, String courseName, String courseCode, String courseColor, String syncedTitle, String customTitle, String displayTitle, String syncedDescription, String customDescription, String displayDescription, LocalDate syncedDueDate, LocalDate customDueDate, LocalDate displayDueDate, LocalTime syncedDueTime, LocalTime customDueTime, LocalTime displayDueTime, Assignment.AssignmentPriority priority, boolean completed, boolean archived, String noteContent, Instant updatedAt) Creates an instance of aAssignmentDetailResponserecord class.- Parameters:
id- the value for theidrecord componentcourseId- the value for thecourseIdrecord componentcourseName- the value for thecourseNamerecord componentcourseCode- the value for thecourseCoderecord componentcourseColor- the value for thecourseColorrecord componentsyncedTitle- the value for thesyncedTitlerecord componentcustomTitle- the value for thecustomTitlerecord componentdisplayTitle- the value for thedisplayTitlerecord componentsyncedDescription- the value for thesyncedDescriptionrecord componentcustomDescription- the value for thecustomDescriptionrecord componentdisplayDescription- the value for thedisplayDescriptionrecord componentsyncedDueDate- the value for thesyncedDueDaterecord componentcustomDueDate- the value for thecustomDueDaterecord componentdisplayDueDate- the value for thedisplayDueDaterecord componentsyncedDueTime- the value for thesyncedDueTimerecord componentcustomDueTime- the value for thecustomDueTimerecord componentdisplayDueTime- the value for thedisplayDueTimerecord componentpriority- the value for thepriorityrecord componentcompleted- the value for thecompletedrecord componentarchived- the value for thearchivedrecord componentnoteContent- the value for thenoteContentrecord componentupdatedAt- the value for theupdatedAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
courseId
Returns the value of thecourseIdrecord component.- Returns:
- the value of the
courseIdrecord component
-
courseName
Returns the value of thecourseNamerecord component.- Returns:
- the value of the
courseNamerecord component
-
courseCode
Returns the value of thecourseCoderecord component.- Returns:
- the value of the
courseCoderecord component
-
courseColor
Returns the value of thecourseColorrecord component.- Returns:
- the value of the
courseColorrecord component
-
syncedTitle
Returns the value of thesyncedTitlerecord component.- Returns:
- the value of the
syncedTitlerecord component
-
customTitle
Returns the value of thecustomTitlerecord component.- Returns:
- the value of the
customTitlerecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
syncedDescription
Returns the value of thesyncedDescriptionrecord component.- Returns:
- the value of the
syncedDescriptionrecord component
-
customDescription
Returns the value of thecustomDescriptionrecord component.- Returns:
- the value of the
customDescriptionrecord component
-
displayDescription
Returns the value of thedisplayDescriptionrecord component.- Returns:
- the value of the
displayDescriptionrecord component
-
syncedDueDate
Returns the value of thesyncedDueDaterecord component.- Returns:
- the value of the
syncedDueDaterecord component
-
customDueDate
Returns the value of thecustomDueDaterecord component.- Returns:
- the value of the
customDueDaterecord component
-
displayDueDate
Returns the value of thedisplayDueDaterecord component.- Returns:
- the value of the
displayDueDaterecord component
-
syncedDueTime
Returns the value of thesyncedDueTimerecord component.- Returns:
- the value of the
syncedDueTimerecord component
-
customDueTime
Returns the value of thecustomDueTimerecord component.- Returns:
- the value of the
customDueTimerecord component
-
displayDueTime
Returns the value of thedisplayDueTimerecord component.- Returns:
- the value of the
displayDueTimerecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
completed
public boolean completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
archived
public boolean archived()Returns the value of thearchivedrecord component.- Returns:
- the value of the
archivedrecord component
-
noteContent
Returns the value of thenoteContentrecord component.- Returns:
- the value of the
noteContentrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-