Comment
Represents a comment
Static Method Summary
| Static Public Methods | ||
| public static |
Unwraps from an API JSON object. |
|
Constructor Summary
| Public Constructor | ||
| public |
Creates a new comment |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Static Public Methods
Public Constructors
public constructor() source
Creates a new comment
Params:
| Name | Type | Attribute | Description |
| options.id | number | the comment id |
|
| options.text | string | comment body |
|
| options.type | string | answer or post |
|
| options.sourceId | number | ID of the type (e.g. the answer id or post id) |
|
| options.parent | Comment | parent comment object |
|
| options.date | Date | JavaScript date object representing creation time |
|
| options.owner | User | The owner of the comment |
|
| options.children | Array | The child comments |
