Record Class AssignmentDetailResponse

java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.response.AssignmentDetailResponse
Record Components:
id - the assignment database ID
courseId - the owning course ID
courseName - the owning course display name
courseCode - the owning course code
courseColor - the owning course UI color
syncedTitle - the title imported from the LMS feed
customTitle - the user-defined title override, if any
displayTitle - the resolved title shown in the UI
syncedDescription - the description imported from the LMS feed
customDescription - the user-defined description override, if any
displayDescription - the resolved description shown in the UI
syncedDueDate - the due date imported from the LMS feed
customDueDate - the user-defined due date override, if any
displayDueDate - the resolved due date shown in the UI
syncedDueTime - the due time imported from the LMS feed
customDueTime - the user-defined due time override, if any
displayDueTime - the resolved due time shown in the UI
priority - the assignment priority level
completed - whether the assignment is marked complete
archived - whether the assignment is archived
noteContent - the user's note text associated with the assignment
updatedAt - 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 Details

  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • courseId

      public Long courseId()
      Returns the value of the courseId record component.
      Returns:
      the value of the courseId record component
    • courseName

      public String courseName()
      Returns the value of the courseName record component.
      Returns:
      the value of the courseName record component
    • courseCode

      public String courseCode()
      Returns the value of the courseCode record component.
      Returns:
      the value of the courseCode record component
    • courseColor

      public String courseColor()
      Returns the value of the courseColor record component.
      Returns:
      the value of the courseColor record component
    • syncedTitle

      public String syncedTitle()
      Returns the value of the syncedTitle record component.
      Returns:
      the value of the syncedTitle record component
    • customTitle

      public String customTitle()
      Returns the value of the customTitle record component.
      Returns:
      the value of the customTitle record component
    • displayTitle

      public String displayTitle()
      Returns the value of the displayTitle record component.
      Returns:
      the value of the displayTitle record component
    • syncedDescription

      public String syncedDescription()
      Returns the value of the syncedDescription record component.
      Returns:
      the value of the syncedDescription record component
    • customDescription

      public String customDescription()
      Returns the value of the customDescription record component.
      Returns:
      the value of the customDescription record component
    • displayDescription

      public String displayDescription()
      Returns the value of the displayDescription record component.
      Returns:
      the value of the displayDescription record component
    • syncedDueDate

      public LocalDate syncedDueDate()
      Returns the value of the syncedDueDate record component.
      Returns:
      the value of the syncedDueDate record component
    • customDueDate

      public LocalDate customDueDate()
      Returns the value of the customDueDate record component.
      Returns:
      the value of the customDueDate record component
    • displayDueDate

      public LocalDate displayDueDate()
      Returns the value of the displayDueDate record component.
      Returns:
      the value of the displayDueDate record component
    • syncedDueTime

      public LocalTime syncedDueTime()
      Returns the value of the syncedDueTime record component.
      Returns:
      the value of the syncedDueTime record component
    • customDueTime

      public LocalTime customDueTime()
      Returns the value of the customDueTime record component.
      Returns:
      the value of the customDueTime record component
    • displayDueTime

      public LocalTime displayDueTime()
      Returns the value of the displayDueTime record component.
      Returns:
      the value of the displayDueTime record component
    • priority

      public Assignment.AssignmentPriority priority()
      Returns the value of the priority record component.
      Returns:
      the value of the priority record component
    • completed

      public boolean completed()
      Returns the value of the completed record component.
      Returns:
      the value of the completed record component
    • archived

      public boolean archived()
      Returns the value of the archived record component.
      Returns:
      the value of the archived record component
    • noteContent

      public String noteContent()
      Returns the value of the noteContent record component.
      Returns:
      the value of the noteContent record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component