// Path: src/main/java/cn/jmessage/api/common/BaseClient.java
// public class BaseClient {
// 
//     protected IHttpClient _httpClient;
//     protected String _baseUrl;
//     protected Gson _gson = new Gson();
// 
//     /**
//      * Create a JMessage Base Client
//      *
//      * @param appKey The KEY of one application on JPush.
//      * @param masterSecret API access secret of the appKey.
//      * @param proxy The proxy, if there is no proxy, should be null.
//      * @param config The client configuration. Can use JMessageConfig.getInstance() as default.
//      */
//     public BaseClient(String appKey, String masterSecret, HttpProxy proxy, JMessageConfig config) {
//         ServiceHelper.checkBasic(appKey, masterSecret);
//         String authCode = ServiceHelper.getBasicAuthorization(appKey, masterSecret);
//         this._baseUrl = (String) config.get(JMessageConfig.API_HOST_NAME);
//         this._httpClient = new NativeHttpClient(authCode, proxy, config.getClientConfig());
//     }
// 
//     public void setHttpClient(IHttpClient httpClient) {
//         this._httpClient = httpClient;
//     }
// 
// }
// 
// Path: src/main/java/cn/jmessage/api/common/JMessageConfig.java
// public class JMessageConfig {
// 
//     private static ClientConfig clientConfig = ClientConfig.getInstance();
// 
//     private static JMessageConfig instance = new JMessageConfig();
// 
//     public static final String API_HOST_NAME = "im.api.host.name";
//     public static final String API_REPORT_HOST_NAME = "im.api.report.host.name";
// 
//     public static final String ADMIN_PATH = "im.admin.path";
// 
//     public static final String USER_PATH = "im.user.path";
//     public static final String V2_USER_PATH = "im.v2.user.path";
// 
//     public static final String GROUP_PATH = "im.group.path";
//     public static final String V2_GROUP_PATH = "im.v2.group.path";
// 
//     public static final String MESSAGE_PATH = "im.message.path";
//     public static final String V2_MESSAGE_PATH = "im.v2.message.path";
//     public static final String V2_STATISTIC_PATH = "im.v2.statistic.path";
//     public static final String V2_CHATROOM_PATH = "im.v2.chatroom.path";
// 
//     public static final String RESOURCE_PATH = "im.resource.path";
// 
//     public static final String CROSS_USER_PATH = "im.cross.user.path";
//     public static final String CROSS_GROUP_PATH = "im.cross.group.path";
// 
//     public static final String SENSITIVE_WORD_PATH = "im.sensitive.word.path";
// 
//     public static final String CHAT_ROOM_PATH = "im.chat.room.path";
// 
//     public static final String MAX_RETRY_TIMES = ClientConfig.MAX_RETRY_TIMES;
// 
//     public static final String SEND_VERSION = "send.version";
//     public static final Object SEND_VERSION_SCHMEA = Integer.class;
// 
//     private JMessageConfig() {
//         clientConfig.put(API_HOST_NAME, "https://api.im.jpush.cn");
//         clientConfig.put(API_REPORT_HOST_NAME, "https://report.im.jpush.cn");
//         clientConfig.put(ADMIN_PATH, "/v1/admins");
//         clientConfig.put(USER_PATH, "/v1/users");
//         clientConfig.put(V2_USER_PATH, "/v2/users");
//         clientConfig.put(GROUP_PATH, "/v1/groups");
//         clientConfig.put(V2_GROUP_PATH, "/v2/groups");
//         clientConfig.put(MESSAGE_PATH, "/v1/messages");
//         clientConfig.put(V2_MESSAGE_PATH, "/v2/messages");
//         clientConfig.put(RESOURCE_PATH, "/v1/resource");
//         clientConfig.put(CROSS_USER_PATH, "/v1/cross/users");
//         clientConfig.put(CROSS_GROUP_PATH, "/v1/cross/groups");
//         clientConfig.put(SENSITIVE_WORD_PATH, "/v1/sensitiveword");
//         clientConfig.put(CHAT_ROOM_PATH, "/v1/chatroom");
//         clientConfig.put(V2_CHATROOM_PATH, "/v2/chatrooms");
//         clientConfig.put(V2_STATISTIC_PATH, "/v2/statistic");
//         clientConfig.put(MAX_RETRY_TIMES, 3);
//         clientConfig.put(SEND_VERSION, 1);
//     }
// 
//     public static JMessageConfig getInstance() {
//         return instance;
//     }
// 
//     public ClientConfig getClientConfig() {
//         return clientConfig;
//     }
// 
//     public JMessageConfig setApiHostName(String hostName) {
//         clientConfig.put(API_HOST_NAME, hostName);
//         return this;
//     }
// 
//     public JMessageConfig setReportHostName(String hostName) {
//         clientConfig.put(API_REPORT_HOST_NAME, hostName);
//         return this;
//     }
// 
//     public JMessageConfig setMaxRetryTimes(int maxRetryTimes) {
//         clientConfig.setMaxRetryTimes(maxRetryTimes);
//         return this;
//     }
// 
//     public void put(String key, Object value) {
//         clientConfig.put(key, value);
//     }
// 
//     public Object get(String key) {
//         return clientConfig.get(key);
//     }
// 
// }


import cn.jiguang.common.connection.HttpProxy;
import cn.jiguang.common.resp.APIConnectionException;
import cn.jiguang.common.resp.APIRequestException;
import cn.jiguang.common.resp.ResponseWrapper;
import cn.jiguang.common.utils.Preconditions;
import cn.jmessage.api.common.BaseClient;
import cn.jmessage.api.common.JMessageConfig;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import java.util.Set;
package cn.jmessage.api.sensitiveword;



public class SensitiveWordClient extends BaseClient {

    private String sensitiveWordPath;

    public SensitiveWordClient(String appKey, String masterSecret) {
// Path: src/main/java/cn/jmessage/api/common/BaseClient.java
// public class BaseClient {
// 
//     protected IHttpClient _httpClient;
//     protected String _baseUrl;
//     protected Gson _gson = new Gson();
// 
//     /**
//      * Create a JMessage Base Client
//      *
//      * @param appKey The KEY of one application on JPush.
//      * @param masterSecret API access secret of the appKey.
//      * @param proxy The proxy, if there is no proxy, should be null.
//      * @param config The client configuration. Can use JMessageConfig.getInstance() as default.
//      */
//     public BaseClient(String appKey, String masterSecret, HttpProxy proxy, JMessageConfig config) {
//         ServiceHelper.checkBasic(appKey, masterSecret);
//         String authCode = ServiceHelper.getBasicAuthorization(appKey, masterSecret);
//         this._baseUrl = (String) config.get(JMessageConfig.API_HOST_NAME);
//         this._httpClient = new NativeHttpClient(authCode, proxy, config.getClientConfig());
//     }
// 
//     public void setHttpClient(IHttpClient httpClient) {
//         this._httpClient = httpClient;
//     }
// 
// }
// 
// Path: src/main/java/cn/jmessage/api/common/JMessageConfig.java
// public class JMessageConfig {
// 
//     private static ClientConfig clientConfig = ClientConfig.getInstance();
// 
//     private static JMessageConfig instance = new JMessageConfig();
// 
//     public static final String API_HOST_NAME = "im.api.host.name";
//     public static final String API_REPORT_HOST_NAME = "im.api.report.host.name";
// 
//     public static final String ADMIN_PATH = "im.admin.path";
// 
//     public static final String USER_PATH = "im.user.path";
//     public static final String V2_USER_PATH = "im.v2.user.path";
// 
//     public static final String GROUP_PATH = "im.group.path";
//     public static final String V2_GROUP_PATH = "im.v2.group.path";
// 
//     public static final String MESSAGE_PATH = "im.message.path";
//     public static final String V2_MESSAGE_PATH = "im.v2.message.path";
//     public static final String V2_STATISTIC_PATH = "im.v2.statistic.path";
//     public static final String V2_CHATROOM_PATH = "im.v2.chatroom.path";
// 
//     public static final String RESOURCE_PATH = "im.resource.path";
// 
//     public static final String CROSS_USER_PATH = "im.cross.user.path";
//     public static final String CROSS_GROUP_PATH = "im.cross.group.path";
// 
//     public static final String SENSITIVE_WORD_PATH = "im.sensitive.word.path";
// 
//     public static final String CHAT_ROOM_PATH = "im.chat.room.path";
// 
//     public static final String MAX_RETRY_TIMES = ClientConfig.MAX_RETRY_TIMES;
// 
//     public static final String SEND_VERSION = "send.version";
//     public static final Object SEND_VERSION_SCHMEA = Integer.class;
// 
//     private JMessageConfig() {
//         clientConfig.put(API_HOST_NAME, "https://api.im.jpush.cn");
//         clientConfig.put(API_REPORT_HOST_NAME, "https://report.im.jpush.cn");
//         clientConfig.put(ADMIN_PATH, "/v1/admins");
//         clientConfig.put(USER_PATH, "/v1/users");
//         clientConfig.put(V2_USER_PATH, "/v2/users");
//         clientConfig.put(GROUP_PATH, "/v1/groups");
//         clientConfig.put(V2_GROUP_PATH, "/v2/groups");
//         clientConfig.put(MESSAGE_PATH, "/v1/messages");
//         clientConfig.put(V2_MESSAGE_PATH, "/v2/messages");
//         clientConfig.put(RESOURCE_PATH, "/v1/resource");
//         clientConfig.put(CROSS_USER_PATH, "/v1/cross/users");
//         clientConfig.put(CROSS_GROUP_PATH, "/v1/cross/groups");
//         clientConfig.put(SENSITIVE_WORD_PATH, "/v1/sensitiveword");
//         clientConfig.put(CHAT_ROOM_PATH, "/v1/chatroom");
//         clientConfig.put(V2_CHATROOM_PATH, "/v2/chatrooms");
//         clientConfig.put(V2_STATISTIC_PATH, "/v2/statistic");
//         clientConfig.put(MAX_RETRY_TIMES, 3);
//         clientConfig.put(SEND_VERSION, 1);
//     }
// 
//     public static JMessageConfig getInstance() {
//         return instance;
//     }
// 
//     public ClientConfig getClientConfig() {
//         return clientConfig;
//     }
// 
//     public JMessageConfig setApiHostName(String hostName) {
//         clientConfig.put(API_HOST_NAME, hostName);
//         return this;
//     }
// 
//     public JMessageConfig setReportHostName(String hostName) {
//         clientConfig.put(API_REPORT_HOST_NAME, hostName);
//         return this;
//     }
// 
//     public JMessageConfig setMaxRetryTimes(int maxRetryTimes) {
//         clientConfig.setMaxRetryTimes(maxRetryTimes);
//         return this;
//     }
// 
//     public void put(String key, Object value) {
//         clientConfig.put(key, value);
//     }
// 
//     public Object get(String key) {
//         return clientConfig.get(key);
//     }
// 
// }


// Path: src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java
import cn.jiguang.common.connection.HttpProxy;
import cn.jiguang.common.resp.APIConnectionException;
import cn.jiguang.common.resp.APIRequestException;
import cn.jiguang.common.resp.ResponseWrapper;
import cn.jiguang.common.utils.Preconditions;
import cn.jmessage.api.common.BaseClient;
import cn.jmessage.api.common.JMessageConfig;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import java.util.Set;

package cn.jmessage.api.sensitiveword;



public class SensitiveWordClient extends BaseClient {

    private String sensitiveWordPath;

    public SensitiveWordClient(String appKey, String masterSecret) {
        this(appKey, masterSecret, null, JMessageConfig.getInstance());