Constructor
new QuizSubmission(client, response)
Instantiate a QuizSubmission object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating this object. |
response |
Object | The data for the object. |
- Source:
Extends
Members
(private) _client :Client
The client that instantiated this object.
- Client
- Overrides:
- Source:
assignment_type :String
The type of assignment that the submission is for.
- String
- Overrides:
- Source:
comment_ids :Array.<Number>
An array of IDs of comments posted to the submission.
- Array.<Number>
- Overrides:
- Source:
created_at :Number
The timestamp of when the submission was created.
- Number
- Overrides:
- Source:
event_ids :Array.<Number>
An array of IDs to events refering to the submission.
- Array.<Number>
- Overrides:
- Source:
grade :String
The grade recieved for the event.
- String
- Overrides:
- Source:
id :String
The ID of the submission.
- String
- Overrides:
- Source:
question_ids :Array.<Number>
An array of submission question IDs.
- Array.<Number>
- Source:
quiz_id :Number
The ID of the quiz that the quiz submission is for.
- Number
- Source:
status :String
The status of the submission.
- String
- Overrides:
- Source:
student_avatar :String
The avatar URL of the student.
- String
- Overrides:
- Source:
student_id :Number
The ID of the student.
- Number
- Overrides:
- Source:
student_name :String
The name of the student.
- String
- Overrides:
- Source:
submission_type :String
The type of submission.
- String
- Source:
updated_at :Number
The timestamp of when the submission was last updated.
- Number
- Overrides:
- Source:
Methods
getComments(idsopt) → {Promise.<Array.<QuizSubmissionComment>>}
Get an array comments made to the submission.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
An array of IDs of the submission comments to retrieve. |
- Source:
- Type
- Promise.<Array.<QuizSubmissionComment>>
getEvents(idsopt) → {Promise.<Array.<SubmissionEvent>>}
Get submission events that refer to this submission.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
An array of IDs of submission events to retrieve. |
- Overrides:
- Source:
- Type
- Promise.<Array.<SubmissionEvent>>
getQuestions(idsopt) → {Promise.<Array.<QuizSubmissionQuestion>>}
Get the questions for the quiz submission.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
An array of IDs of quiz submission questions to retrieve. |
- Source:
- Type
- Promise.<Array.<QuizSubmissionQuestion>>
getQuiz() → {Promise.<Quiz>}
Get the quiz that the quiz submission is for.
- Source:
- Type
- Promise.<Quiz>
getStudent() → {Promise.<Student>}
Get the student who submitted the flexible task submission.
- Overrides:
- Source:
- Type
- Promise.<Student>
postComment(text) → {Promise.<QuizSubmissionComment>}
Post a comment on the submission from the client user.
Name | Type | Description |
---|---|---|
text |
String | The text of the comment. |
- Source:
- Type
- Promise.<QuizSubmissionComment>