CommentsRequest
Extends:
js/models/models/Request/Request.js~Request → CommentsRequest
Obtains paginated comments
Constructor Summary
Public Constructor | ||
public |
constructor(type: string, id: number | string, page: number, parentId: number, intialOffset: number) Creates a new comment |
Public Constructors
public constructor(type: string, id: number | string, page: number, parentId: number, intialOffset: number) source
Creates a new comment
Params:
Name | Type | Attribute | Description |
type | string |
|
|
id | number | string | Id of post or answer |
|
page | number | Comment page number (0-indexed) |
|
parentId | number |
|
The parent ID if loading a subcomment. |
intialOffset | number |
|
How many are loaded before paging started counting |