From dccccf0760a792262e2f20fe7cfbc8fbb0ada98f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 21 十月 2020 17:19:51 +0800
Subject: [PATCH] 应用更新包名更改

---
 BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
index 3ad4942..28bde51 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
@@ -70,7 +70,6 @@
         asyncHttpClient.setURLEncodingEnabled(false);
         syncHttpClient.setURLEncodingEnabled(false);
         sortTimeAsyncHttpClient.setURLEncodingEnabled(false);
-
     }
 
     public static void getUid(Context context, String channel, String device,
@@ -100,12 +99,20 @@
      */
     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);
     }
 
@@ -962,6 +969,30 @@
 
     }
 
+
+    /**
+     * 鑾峰彇鍓ч泦鍒楄〃
+     *
+     * @param context
+     * @param uid
+     * @param ResourceId
+     * @param videoId
+     * @param page
+     * @param handler
+     */
+    public static void getVideoEpisodeList(Context context, String uid,
+                                           String ResourceId, String videoId, int page,
+                                           ResponseHandlerInterface handler) {
+        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
+        params.put("Method", "getVideoEpisodeList");
+        params.put("Uid", uid);
+        params.put("Page", page + "");
+        params.put("VideoId", videoId);
+        params.put("ResourceId", ResourceId);
+        commonPost(context, BASE_URL + "recommend", params, handler);
+
+    }
+
     public static void advice(Context context, String uid, String content,
                               ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
@@ -1035,6 +1066,21 @@
     }
 
 
+    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");

--
Gitblit v1.8.0