Methods
Create
Creates a vote on a comment
Usage
#set($commentVoteResponse = $core_v2_commentVotes.Create($commentId, $value))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
value | bool | Vote value: Up(true) or Down(false) | Required |
Return Type
Delete
Deletes a comment vote
Usage
#set($additionalInfoResponse = $core_v2_commentVotes.Delete($commentId, $userId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
userId | int | Id of the user | Required |
Return Type
Get
Get a vote on a comment
Usage
#set($commentVoteResponse = $core_v2_commentVotes.Get($commentId, $userId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Id of the comment | Required | ||
userId | int | Id of the user | Required |
Return Type
List
Get a list of comment votes
Usage
#set($pagedListResponse = $core_v2_commentVotes.List("%{CommentId = $commentIdArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, UserId = $userIdArg, Value = $valueArg}"))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
CommentId | Guid | Id of the comment | Optional | ||
PageIndex | int | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | int | Specify the number of results to return per page. | Optional | 20 | |
UserId | int | Id of the user | Optional | ||
Value | bool | Vote value: Up(trure) or Down(false) | Optional |
Return Type
Update
Usage
#set($commentVoteResponse = $core_v2_commentVotes.Update($commentId, $value))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
commentId | Guid | Comment Id | Required | ||
value | bool | Value | Required |