public class SensitiveWordClient extends BaseClient
_baseUrl, _gson, _httpClient| 构造器和说明 |
|---|
SensitiveWordClient(java.lang.String appKey,
java.lang.String masterSecret) |
SensitiveWordClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
Create a JMessage Base Client
|
| 限定符和类型 | 方法和说明 |
|---|---|
cn.jiguang.common.resp.ResponseWrapper |
addSensitiveWords(java.util.Set<java.lang.String> words)
Add sensitive words
|
cn.jiguang.common.resp.ResponseWrapper |
addSensitiveWords(java.lang.String... words)
Add sensitive words
|
cn.jiguang.common.resp.ResponseWrapper |
deleteSensitiveWord(java.lang.String word)
Delete sensitive word
|
SensitiveWordListResult |
getSensitiveWordList(int start,
int count)
Get sensitive word list
|
SensitiveWordStatusResult |
getSensitiveWordStatus()
Get sensitive word status
|
cn.jiguang.common.resp.ResponseWrapper |
updateSensitiveWord(java.lang.String newWord,
java.lang.String oldWord)
Update sensitive word
|
cn.jiguang.common.resp.ResponseWrapper |
updateSensitiveWordStatus(int status)
Update sensitive word status
|
setHttpClientpublic SensitiveWordClient(java.lang.String appKey,
java.lang.String masterSecret)
public SensitiveWordClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
appkey - The KEY of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.config - The client configuration. Can use JMessageConfig.getInstance() as default.public cn.jiguang.common.resp.ResponseWrapper addSensitiveWords(java.lang.String... words)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
words - String arraycn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper addSensitiveWords(java.util.Set<java.lang.String> words)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
words - String Setcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper updateSensitiveWord(java.lang.String newWord,
java.lang.String oldWord)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
newWord - new wordoldWord - old wordcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteSensitiveWord(java.lang.String word)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
word - word to be deletedcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic SensitiveWordListResult getSensitiveWordList(int start, int count) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
start - the begin of the listcount - the count of the listcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper updateSensitiveWordStatus(int status)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
status - 1 represent turn on filtering, 0 represent turn off.cn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic SensitiveWordStatusResult getSensitiveWordStatus() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionCopyright © 2017. All Rights Reserved.