| | |
| | | asyncHttpClient.setURLEncodingEnabled(false); |
| | | syncHttpClient.setURLEncodingEnabled(false); |
| | | sortTimeAsyncHttpClient.setURLEncodingEnabled(false); |
| | | |
| | | } |
| | | |
| | | public static void getUid(Context context, String channel, String device, |
| | |
| | | */ |
| | | public static void getConfig(Context context, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("Method", "getConfig"); |
| | | if (!StringUtils.isBlank(BeibeiVideoApplication.deviceNumber)) { |
| | | params.put("DeviceName", BeibeiVideoApplication.deviceName); |
| | | params.put("DeviceNumber", BeibeiVideoApplication.deviceNumber); |
| | | } |
| | | commonPost(context, BASE_URL + "config", params, null, handler, true, true); |
| | | } |
| | | |
| | | |
| | | public static void getHomeConfig(Context context, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("Method", "getHomeConfig"); |
| | | commonPost(context, BASE_URL + "config", params, null, handler, true, true); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | public static void getBaiDuNewsTypeList(Context context, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("Method", "getNewsTypeList"); |
| | | commonPost(context, BASE_URL + "baidu", params, handler); |
| | | } |
| | | |
| | | public static void getBaiDuVideoTypeList(Context context, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("Method", "getVideoTypeList"); |
| | | commonPost(context, BASE_URL + "baidu", params, handler); |
| | | } |
| | | |
| | | |
| | | |
| | | public static LinkedHashMap<String, String> validateParams( |
| | | LinkedHashMap<String, String> params, Context context) { |
| | | params.put("System", "1"); |