Package edu.ucsb.cs.scaffold.services
Record Class PrairieLearnService.AssessmentInfo
java.lang.Object
java.lang.Record
edu.ucsb.cs.scaffold.services.PrairieLearnService.AssessmentInfo
- Enclosing class:
PrairieLearnService
public static record PrairieLearnService.AssessmentInfo(Long assessmentId, String assessmentName, String assessmentNumber, Long assessmentOrderBy, String title, String assessmentSetAbbreviation, Integer assessmentSetNumber, String assessmentSetHeading, String assessmentSetColor)
extends Record
One assessment from the
/course_instances/{id}/assessments response — the fields
PlAssessment stores (issue #71). assessmentName matches the assessment's directory name
in the GitHub repo (PlAssessment.name), which is how the two sources are joined.-
Constructor Summary
ConstructorsConstructorDescriptionAssessmentInfo(Long assessmentId, String assessmentName, String assessmentNumber, Long assessmentOrderBy, String title, String assessmentSetAbbreviation, Integer assessmentSetNumber, String assessmentSetHeading, String assessmentSetColor) Creates an instance of aAssessmentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassessmentIdrecord component.Returns the value of theassessmentNamerecord component.Returns the value of theassessmentNumberrecord component.Returns the value of theassessmentOrderByrecord component.Returns the value of theassessmentSetAbbreviationrecord component.Returns the value of theassessmentSetColorrecord component.Returns the value of theassessmentSetHeadingrecord component.Returns the value of theassessmentSetNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssessmentInfo
public AssessmentInfo(Long assessmentId, String assessmentName, String assessmentNumber, Long assessmentOrderBy, String title, String assessmentSetAbbreviation, Integer assessmentSetNumber, String assessmentSetHeading, String assessmentSetColor) Creates an instance of aAssessmentInforecord class.- Parameters:
assessmentId- the value for theassessmentIdrecord componentassessmentName- the value for theassessmentNamerecord componentassessmentNumber- the value for theassessmentNumberrecord componentassessmentOrderBy- the value for theassessmentOrderByrecord componenttitle- the value for thetitlerecord componentassessmentSetAbbreviation- the value for theassessmentSetAbbreviationrecord componentassessmentSetNumber- the value for theassessmentSetNumberrecord componentassessmentSetHeading- the value for theassessmentSetHeadingrecord componentassessmentSetColor- the value for theassessmentSetColorrecord 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). -
assessmentId
Returns the value of theassessmentIdrecord component.- Returns:
- the value of the
assessmentIdrecord component
-
assessmentName
Returns the value of theassessmentNamerecord component.- Returns:
- the value of the
assessmentNamerecord component
-
assessmentNumber
Returns the value of theassessmentNumberrecord component.- Returns:
- the value of the
assessmentNumberrecord component
-
assessmentOrderBy
Returns the value of theassessmentOrderByrecord component.- Returns:
- the value of the
assessmentOrderByrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
assessmentSetAbbreviation
Returns the value of theassessmentSetAbbreviationrecord component.- Returns:
- the value of the
assessmentSetAbbreviationrecord component
-
assessmentSetNumber
Returns the value of theassessmentSetNumberrecord component.- Returns:
- the value of the
assessmentSetNumberrecord component
-
assessmentSetHeading
Returns the value of theassessmentSetHeadingrecord component.- Returns:
- the value of the
assessmentSetHeadingrecord component
-
assessmentSetColor
Returns the value of theassessmentSetColorrecord component.- Returns:
- the value of the
assessmentSetColorrecord component
-