CommentApiClientInterface
Methods
createComment()
createComment(
data
,config
?):Promise
<SCCommentType
>
Parameters
Parameter | Type |
---|---|
data | CommentCreateParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Source
deleteComment()
deleteComment(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
flagComment()
flagComment(
id
,flagType
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
flagType | SCFlagTypeEnum |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
getASpecificComment()
getASpecificComment(
id
,config
?):Promise
<SCCommentType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Source
getAllComments()
getAllComments(
params
,config
?):Promise
<SCPaginatedResponse
<SCCommentType
>>
Parameters
Parameter | Type |
---|---|
params | CommentListParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCCommentType
>>
Source
getSpecificCommentFlagStatus()
getSpecificCommentFlagStatus(
id
,config
?):Promise
<SCFlagType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCFlagType
>
Source
getSpecificCommentFlags()
getSpecificCommentFlags(
id
,config
?):Promise
<SCPaginatedResponse
<SCFlagType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFlagType
>>
Source
getSpecificCommentVotesList()
getSpecificCommentVotesList(
id
,config
?):Promise
<SCPaginatedResponse
<SCVoteType
>>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCVoteType
>>
Source
restoreComment()
restoreComment(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
updateComment()
updateComment(
id
,text
,config
?):Promise
<SCCommentType
>
Parameters
Parameter | Type |
---|---|
id | string | number |
text | string |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCCommentType
>
Source
upvoteComment()
upvoteComment(
id
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>