Hanami backend
Toggle table of contents
2026.7.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Hanami backend
Hanami backend
/
fi.aalto.cs.hanami.grading
/
Assessment
Assessment
@
Serializable
data
class
Assessment
(
val
submissionId
:
Long
?
=
null
,
val
memberIds
:
List
<
Long
>
=
emptyList()
,
val
selections
:
Map
<
String
,
Assessment.CategorySelection
>
=
emptyMap()
,
val
fileAnnotations
:
Map
<
String
,
List
<
SarifAnnotation
>
>
=
emptyMap()
,
val
generalFeedback
:
String
=
""
,
val
staffNotes
:
String
=
""
,
val
finalGrade
:
Int
?
=
null
)
(
source
)
Members
Constructors
Assessment
Link copied to clipboard
constructor
(
submissionId
:
Long
?
=
null
,
memberIds
:
List
<
Long
>
=
emptyList()
,
selections
:
Map
<
String
,
Assessment.CategorySelection
>
=
emptyMap()
,
fileAnnotations
:
Map
<
String
,
List
<
SarifAnnotation
>
>
=
emptyMap()
,
generalFeedback
:
String
=
""
,
staffNotes
:
String
=
""
,
finalGrade
:
Int
?
=
null
)
Types
Category
Selection
Link copied to clipboard
@
Serializable
data
class
CategorySelection
(
val
items
:
List
<
Assessment.GeneralItem
>
=
emptyList()
,
val
pointsOverride
:
Int
?
=
null
,
val
comment
:
String
=
""
,
val
grade
:
Int
?
=
null
)
Companion
Link copied to clipboard
object
Companion
General
Item
Link copied to clipboard
@
Serializable
data
class
GeneralItem
(
val
id
:
String
,
val
phraseId
:
String
?
=
null
,
val
tone
:
String
=
"note"
,
val
content
:
String
=
""
,
val
authorUserId
:
Long
?
=
null
)
Properties
file
Annotations
Link copied to clipboard
val
fileAnnotations
:
Map
<
String
,
List
<
SarifAnnotation
>
>
final
Grade
Link copied to clipboard
val
finalGrade
:
Int
?
general
Feedback
Link copied to clipboard
val
generalFeedback
:
String
member
Ids
Link copied to clipboard
val
memberIds
:
List
<
Long
>
selections
Link copied to clipboard
val
selections
:
Map
<
String
,
Assessment.CategorySelection
>
staff
Notes
Link copied to clipboard
val
staffNotes
:
String
submission
Id
Link copied to clipboard
val
submissionId
:
Long
?
Functions
sanitized
Link copied to clipboard
fun
sanitized
(
)
:
Assessment
student
Visible
Link copied to clipboard
fun
studentVisible
(
)
:
Assessment
with
Stamped
Authors
Link copied to clipboard
fun
withStampedAuthors
(
previous
:
Assessment
?
,
editorUserId
:
Long
)
:
Assessment