Constructor
new FlexibleTaskSubmission(client, response)
Instantiate a FlexibleTaskSubmission object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating this object. |
response |
Object | The data for the object. |
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:
comment_ids :Array.<Number>
An array of IDs of comments posted to the submission.
- Array.<Number>
- Overrides:
- Source:
completed :Boolean
Whether or not the flexible task submission is marked as complete.
- Boolean
created_at :Number
The timestamp of when the submission was created.
- Number
- Overrides:
- Source:
current_submission_version_id :Number
The ID of the current flexible task submission version.
- Number
event_ids :Array.<Number>
An array of IDs to events refering to the submission.
- Array.<Number>
- Overrides:
- Source:
flexible_task_id :Number
The ID of the flexible task that the flexible task submission is for.
- Number
grade :String
The grade recieved for the event.
- String
- Overrides:
- Source:
grade_sent :Boolean
Whether or not a grade has been given for the flexible task submission.
- Boolean
grading_comment :String
The comment made for the grade for the flexible task submission.
- String
handed_in_on :Number
The timestamp of when the flexible task submission was handed in.
- Number
has_unread_comments :Boolean
Whether or not the flexible task submission has unread comments.
- Boolean
id :String
The ID of the submission.
- String
- Overrides:
- Source:
marked :Boolean
Whether or not the flexible task submission has been marked.
- Boolean
overdue :Boolean
Whether or not the flexible task submission is overdue.
- Boolean
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
updated_at :Number
The timestamp of when the submission was last updated.
- Number
- Overrides:
- Source:
version_ids :Array.<Number>
An array of IDs to each flexible task submission version.
- Array.<Number>
Methods
getComments(idsopt) → {Promise.<Array.<FlexibleTaskSubmissionComment>>}
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. |
- Type
- Promise.<Array.<FlexibleTaskSubmissionComment>>
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>>
getFlexibleTask() → {Promise.<FlexibleTask>}
Get the flexible task that the flexible task submission is for.
- Type
- Promise.<FlexibleTask>
getStudent() → {Promise.<Student>}
Get the student who submitted the flexible task submission.
- Overrides:
- Source:
- Type
- Promise.<Student>
postComment(text) → {Promise.<FlexibleTaskSubmissionComment>}
Post a comment on the submission from the client user.
Name | Type | Description |
---|---|---|
text |
String | The text of the comment. |
- Type
- Promise.<FlexibleTaskSubmissionComment>