public class SensitiveWord extends Object
| 构造器和说明 |
|---|
SensitiveWord(String appKey,
String appSecret) |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseResult |
add(SensitiveWordModel sensitiveword)
添加敏感词方法(设置敏感词后,App 中用户不会收到含有敏感词的消息内容,默认最多设置 50 个敏感词。)
|
ResponseResult |
batchDelete(String[] words)
批量移除敏感词方法(从敏感词列表中,移除某一敏感词。)
|
ListWordfilterResult |
getList(Integer type)
查询敏感词列表方法
|
RongCloud |
getRongCloud() |
ResponseResult |
remove(String word)
移除敏感词方法(从敏感词列表中,移除某一敏感词。)
|
void |
setRongCloud(RongCloud rongCloud) |
public RongCloud getRongCloud()
public void setRongCloud(RongCloud rongCloud)
public ResponseResult add(SensitiveWordModel sensitiveword) throws Exception
sensitiveword:敏感词 - Exceptionpublic ListWordfilterResult getList(Integer type) throws Exception
type:查询敏感词的类型,0 - 为查询替换敏感词,1 为查询屏蔽敏感词,2 为查询全部敏感词。默认为 1。(非必传)Exceptionpublic ResponseResult remove(String word) throws Exception
word:敏感词,最长不超过 - 32 个字符。(必传)Exceptionpublic ResponseResult batchDelete(String[] words) throws Exception
words:敏感词数组,一次最多移除 - 50 个敏感词(必传)ExceptionCopyright © 2020 RcongCloud Group. All rights reserved.