Get Report Tags
To perform moderation functionalities, like reporting a post, use the getReportTags
function. It is used to fetch report tags for moderation.
Steps to Get Report Tags
- Create a GetReportTagRequest object using
GetReportTagRequest.builder()
class by passing all the required parameters. - Call
getReportTags()
function using the instance ofLMFeedClient
. - Process the response LMResponse<GetReportTagResponse> as per your requirement.
// object of GetTaggingListRequest
let request = GetReportTagRequest.builder()
.type(type) // type of report tags to fetch
.build()
LMFeedClient.shared.getReportTags(request) { response in
// response (LMResponse<GetReportTagResponse>)
if (response.success) {
// your function to process the response data
processResponse(response.data)
} else {
// your function to process error message
processError(response.errorMessage)
}
}
Models
GetReportTagRequest
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
type | Int | Type of report tags to fetch |
GetReportTagResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
reportTags | [Report Tags] | List of Report Tags |
Report Tags
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | Int | Id for Report Tag | |
name | String | Name for Report Tag |