Constructor
new FlexibleTask(client, response)
Istantiate a FlexibleTask object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating the object. |
response |
Object | The data for the object. |
- Source:
Members
(private) _client :Client
The client that instantiated this object.
- Client
- Source:
attachment_ids :Array.<Number>
An array of IDs for attachments attached to the flexible task.
- Array.<Number>
- Source:
bookstore_content_ids :Array.<Number>
- Array.<Number>
- Source:
class_group_id :Number
The ID of the class group that the flexible task was set for.
- Number
- Source:
class_group_name :String
The name of the class group that the flexible task was set for.
- String
- Source:
class_year :String
The class year that the flexible task was set for.
- String
- Source:
community_resource_item_id :Number
The ID of the flexible task community resource.
- Number
- Source:
created_at :Number
The timestamp of when the flexible task was created.
- Number
- Source:
description :String
The description of the flexible task.
- String
- Source:
due_on :Number
The timestamp of when the flexible task is due.
- Number
- Source:
duration :String
The duration of the flexible task.
- String
- Source:
duration_units :String
The duration units of the flexible task.
- String
- Source:
has_unread_comments :Boolean
Whether or not the flexible task has unread comments.
- Boolean
- Source:
id :Number
The ID of the flexible task.
- Number
- Source:
issued_on :Number
The timestamp of when the flexible task was issued.
- Number
- Source:
marking_scheme_id :Number
The ID of the marking scheme used for the flexible task.
- Number
- Source:
published_at :Number
The timestamp of when the flexible task was published.
- Number
- Source:
purpose :String
The purpose of the flexible task.
- String
- Source:
school_id :Number
The ID of the school that the flexible task is set for.
- Number
- Source:
school_logo_url :String
The logo URL of of the school that the flexible task is set for.
- String
- Source:
school_name :String
The name of the school that the flexible task is set for.
- String
- Source:
subject :String
The subject of the flexible task.
- String
- Source:
submission_ids :Array.<Number>
An array of IDs for submissions
- Array.<Number>
- Source:
submission_method_id :Number
The ID of the submission method to use.
- Number
- Source:
submission_status :String
The status of the submission for the client user.
- String
- Source:
submission_type :String
The name of the submission method to use.
- String
- Source:
teacher_id :Number
The ID of the teacher who set the flexible task.
- Number
- Source:
teacher_name :String
The name of the teacher who set the flexible task.
- String
- Source:
title :String
The title of the flexible task.
- String
- Source:
updated_at :Number
The timestamp of when the flexible task was last updated.
- Number
- Source:
web_links :Array.<String>
An array of links to web resources for the flexible task.
- Array.<String>
- Source:
Methods
getAttachments(idsopt) → {Promise.<Array.<Attachment>>}
Get attachments on the flexible task.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the attachments to retrieve. |
- Source:
- Type
- Promise.<Array.<Attachment>>
getSubmission() → {Promise.<FlexibleTaskSubmission>}
Get the client user's submission to the flexible task.
- Source:
- Type
- Promise.<FlexibleTaskSubmission>
getSubmissionComments(idsopt) → {Promise.<Array.<SubmissionComment>>}
Get comments made on flexible task submissions.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the flexible task comments to retrieve. |
- Source:
- Type
- Promise.<Array.<SubmissionComment>>
getSubmissions(idsopt) → {Promise.<Array.<FlexibleTaskSubmissions>>}
Get submissions to the flexible task.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the flexible task submissions to retrieve. |
- Source:
- Type
- Promise.<Array.<FlexibleTaskSubmissions>>
getTeacher() → {Promise.<Employee>}
Get the teacher who set the flexible task.
- Source:
- Type
- Promise.<Employee>