Constructor
new Homework(client, response)
Instantiate a Homework object.
Parameters:
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating the object. |
response |
Object | The data for the object. |
- Source:
Members
bookstore_content_ids :Array.<Number>
Type:
- Array.<Number>
- Source:
duration :String
The duration of the homework.
Type:
- String
- Source:
duration_units :String
The duration units of the homework.
Type:
- String
- Source:
marking_scheme_id :Number
The ID of the marking scheme used for the homework.
Type:
- Number
- Source:
submission_type :String
The name of the submission method to use.
Type:
- String
- Source:
type :String
The assignment type.
Type:
- String
- Source:
Methods
getSubmission() → {Promise.<HomeworkSubmission>}
Get the client user's submission to the homework.
- Source:
Returns:
- Type
- Promise.<HomeworkSubmission>
getSubmissionComments(idsopt) → {Promise.<Array.<HomeworkSubmissionComment>>}
Get comments made on homework submissions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the submission comments to retrieve. |
- Source:
Returns:
- Type
- Promise.<Array.<HomeworkSubmissionComment>>
getSubmissions(idsopt) → {Promise.<Array.<HomeworkSubmissions>>}
Get submissions to the homework.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the homework submissions to retrieve. |
- Source:
Returns:
- Type
- Promise.<Array.<HomeworkSubmissions>>