Constructor
new Submission(client, response)
Instantiate a Submission object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating this objectg. |
response |
Object | The data for the object. |
- Source:
Members
(private) _client :Client
The client that instantiated this object.
- Client
- Source:
assignment_type :String
The assignment type of the submission.
- String
- Source:
comment_ids :Array.<Number>
An array of IDs of comments posted to the submission.
- Array.<Number>
- Source:
created_at :Number
The timestamp of when the submission was created.
- Number
- Source:
event_ids :Array.<Number>
An array of IDs to events refering to the submission.
- Array.<Number>
- Source:
grade :String
The grade recieved for the event.
- String
- Source:
id :String
The ID of the submission.
- String
- Source:
status :String
The status of the submission.
- String
- Source:
student_avatar :String
The avatar URL of the student.
- String
- Source:
student_id :Number
The ID of the student.
- Number
- Source:
student_name :String
The name of the student.
- String
- Source:
updated_at :Number
The timestamp of when the submission was last updated.
- Number
- Source:
Methods
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. |
- Source:
- Type
- Promise.<Array.<SubmissionEvent>>
getStudent() → {Promise.<Student>}
Get the student who submitted the flexible task submission.
- Source:
- Type
- Promise.<Student>