Constructor
new SubmissionEvent(client, response)
Instantiate a SubmissionEvent object.
Parameters:
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.
Type:
- Client
- Source:
content :String
The content of the event.
Type:
- String
- Source:
created_at :Number
The timestamp of when the event was created.
Type:
- Number
- Source:
event_type :String
The type of the submission event.
Type:
- String
- Source:
id :Number
The ID of the submission event.
Type:
- Number
- Source:
submission :Object
The submission information of the submission event.
Type:
- Object
- Source:
submission_id :String
The ID of the submission.
Type:
- String
- Source:
teacher_id :Number
The ID of the teacher who created the event.
Type:
- Number
- Source:
updated_at :Number
The timestamp of when the homework was last updated.
Type:
- Number
- Source:
user_name :String
The name of the user who created the event.
Type:
- String
- Source:
Methods
getSubmission() → {Promise.<HomeworkSubmission>}
Get submission that the event refers to.
- Source:
Returns:
- Type
- Promise.<HomeworkSubmission>
getTeacher() → {Promise.<Employee>}
Get the teacher who created the event.
- Source:
Returns:
- Type
- Promise.<Employee>