Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

FlexibleTask

Edward Smale edited this page Apr 7, 2020 · 4 revisions

FlexibleTask

Represents a flexible task assignment.

Extends Assignment

Properties

.marking_scheme_id (Number) The ID of the marking scheme used.

.duration (Number) How long the task takes to complete.

.duration_units (Number) The units used for .duration.

.submission_type (String) The type of submission used.

.bookstore_content_ids (Array<Number>) An array of bookstore ids. (???)

Methods

.getOwnSubmission()

Get your own submission to the assignment. Returns Promise<FlexibleTaskSubmission>

.getSubmissions([...ids])

  • [...ids] (Number) A list of all submission IDs to retrieve. Leave out to retrieve all.

Get a list of submissions to the assignment. Returns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[FlexibleTaskSubmission](https://github.com/edqx/node-smhw-client/wiki/FlexibleTaskSubmission)>>

Clone this wiki locally