SubmissionComment

SubmissionComment

Represents a comment on a submission on SMHW.


Constructor

new SubmissionComment(client, response)

Instantiate a SubmissionComment object.

Parameters:
Name Type Description
client Client

The client that is instantiating the object.

response Object

The data for the object.

Members

(private) _client :Client

The client that instantiated this object.

Type:
  • Client

assignment :Object

The assignment information of the submission comment.

Type:
  • Object

assignment_id :Number

The ID of the assignment of the submission comment.

Type:
  • Number

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

submission :Object

The submission information of the submission comment.

Type:
  • Object

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.

getAssignmentSubmission()

Get the submission that the comment was posted to.

getUser() → {Promise.<User>}

Get the user who posted the comment.

Returns:
Type
Promise.<User>