Constructor
new HomeworkSubmissionComment(client, response)
Instantiate a HomeworkSubmissionComment object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating this object. |
response |
Object | The data for the object. |
Extends
Members
(private) _client :Client
The client that instantiated this object.
- Client
- Overrides:
- Source:
assignment :AssignmentInformation
The assignment information of the submission comment.
- Overrides:
- Source:
assignment_id :Number
The ID of the assignment of the submission comment.
- Number
- Overrides:
- Source:
assignment_type :String
The type of assignment that the comment was posted on.
- String
- Overrides:
- Source:
created_at :Number
The timestamp of when the submission comment was created.
- Number
- Overrides:
- Source:
id :Number
The ID of the submission comment.
- Number
- Overrides:
- Source:
origin :String
The origin of the submission comment.
- String
- Overrides:
- Source:
shared_submission_comment_id :Number
The ID of the shared submission comment.
- Number
- Source:
submission :SubmissionInformation
The submission information of the submission comment.
- Overrides:
- Source:
submission_type :String
The type of submission that the comment was posted on.
- String
- Overrides:
- Source:
text :String
The content of the submission comment.
- String
- Overrides:
- Source:
updated_at :Number
The timestamp of when the submission comment was last updated.
- Number
- Overrides:
- Source:
user_id :Number
The ID of the user who posted the comment.
- Number
- Overrides:
- Source:
user_name :String
The name of the user who posted the comment.
- String
- Overrides:
- Source:
Methods
getAssignment()
Get the assignment that the comment was posted to.
getSubmission()
Get the submission that the comment was posted to.
getUser() → {Promise.<User>}
Get the user who posted the comment.
- Overrides:
- Source:
- Type
- Promise.<User>