Homework

Homework

Represents a homework assignment on SMHW.


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.

Members

bookstore_content_ids :Array.<Number>

Type:
  • Array.<Number>

duration :String

The duration of the homework.

Type:
  • String

duration_units :String

The duration units of the homework.

Type:
  • String

marking_scheme_id :Number

The ID of the marking scheme used for the homework.

Type:
  • Number

submission_type :String

The name of the submission method to use.

Type:
  • String

type :String

The assignment type.

Type:
  • String

Methods

getSubmission() → {Promise.<HomeworkSubmission>}

Get the client user's submission to the homework.

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.

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.

Returns:
Type
Promise.<Array.<HomeworkSubmissions>>