Constructor
new HomeworkSubmission(client, response)
Instantiate a HomeworkSubmission object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating this object. |
response |
Object | The data for the object. |
- Source:
Members
(private) _client :Client
The client that instantiatied this client.
- Client
- Source:
comment_ids :Array.<Number>
An array of IDs of comments posted on the homework submission.
- Array.<Number>
- Source:
completed :Boolean
Whether or not the homework submission is marked as complete.
- Boolean
- Source:
created_at :Number
The timestamp of when the homework submission was created.
- Number
- Source:
current_submission_version_id :Number
The ID of the current homework submission version.
- Number
- Source:
event_ids :Array.<Number>
An array of IDs of events relating to the homework submission.
- Array.<Number>
- Source:
grade :String
The grade recieved for the homework submission.
- String
- Source:
grade_sent :Boolean
Whether or not a grade has been given for the homework submission.
- Boolean
- Source:
grading_comment :String
The comment made for the grade for the homework submission.
- String
- Source:
handed_in_on :Number
The timestamp of when the homework submission was handed in.
- Number
- Source:
has_unread_comments :Boolean
Whether or not the homework submission has unread comments.
- Boolean
- Source:
homework_id :Number
The ID of the homework that the homework submission is for.
- Number
- Source:
id :String
The ID of the homework submission.
- String
- Source:
marked :Boolean
Whether or not the homework submission has been marked.
- Boolean
- Source:
overdue :Boolean
Whether or not the homework submission is overdue.
- Boolean
- Source:
status :String
The status of the homework submission.
- String
- Source:
student_avatar :String
The avatar URL of the student who the homework submission belongs to.
- String
- Source:
student_id :Number
The ID of the student who the homework submission belongs to.
- Number
- Source:
student_name :String
The name of the student who the homework submission belongs to.
- String
- Source:
updated_at :Number
The timestamp of when the homework submission was last updated.
- Number
- Source:
version_ids :Array.<Number>
An array of IDs to each homework submission version.
- Array.<Number>
- Source:
Methods
getComments(idsopt) → {Promise.<Array.<SubmissionComment>>}
Get comments made to the homework submission.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
An array of IDs of the homework submission comments to retrieve. |
- Source:
- Type
- Promise.<Array.<SubmissionComment>>
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. |
- Source:
- Type
- Promise.<Array.<SubmissionEvent>>
getHomework() → {Promise.<Homework>}
Get the homework that the homework submission is for.
- Source:
- Type
- Promise.<Homework>
getStudent() → {Promise.<HomeworkSubmission>}
Get the student who submitted the homework submission.
- Source:
- Type
- Promise.<HomeworkSubmission>
getVersions(idsopt) → {Promise.<Array.<HomeworkSubmissionVersion>>}
Get homework submission versions for the homework submission.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
An array of IDs of homework versions to retrieve. |
- Source:
- Type
- Promise.<Array.<HomeworkSubmissionVersion>>
postComment(text) → {Promise.<SubmissionComment>}
Post a comment on the submission from the client user.
Name | Type | Description |
---|---|---|
text |
String | The text of the comment. |
- Source:
- Type
- Promise.<SubmissionComment>