QuizSubmissionComment

QuizSubmissionComment

Represents a comment to a homework submission on SMHW.


Constructor

new QuizSubmissionComment(client, response)

Instantiate a QuizSubmissionComment object.

Parameters:
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.

Type:
  • Client

assignment :AssignmentInformation

The assignment information of the submission comment.

assignment_id :Number

The ID of the assignment of the submission comment.

Type:
  • Number

assignment_type :String

The type of assignment that the comment was posted on.

Type:
  • String

created_at :Number

The timestamp of when the submission comment was created.

Type:
  • Number

id :Number

The ID of the submission comment.

Type:
  • Number

origin :String

The origin of the submission comment.

Type:
  • String

shared_submission_comment_id :Number

The ID of the shared submission comment.

Type:
  • Number

submission :SubmissionInformation

The submission information of the submission comment.

submission_type :String

The type of submission that the comment was posted on.

Type:
  • String

text :String

The content of the submission comment.

Type:
  • String

updated_at :Number

The timestamp of when the submission comment was last updated.

Type:
  • Number

user_id :Number

The ID of the user who posted the comment.

Type:
  • Number

user_name :String

The name of the user who posted the comment.

Type:
  • String

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.

Returns:
Type
Promise.<User>