From efa9c4225fe7e89c4acb1eacedd392d79aee240d Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期四, 15 四月 2021 01:59:24 +0800
Subject: [PATCH] 影视豆界面完善

---
 BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
index ebfd609..404e4b5 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoAPI.java
@@ -622,8 +622,14 @@
     public static void getHotSearch(Context context, String uid,
                                     ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
-        params.put("Method", "getHotSearch");
+        params.put("Method", "getHotSearchNew");
         params.put("Uid", uid);
+        commonPost(context, BASE_URL + "user", params, handler);
+    }
+
+    public static void getSearchRank(Context context, ResponseHandlerInterface handler) {
+        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
+        params.put("Method", "getSearchRank");
         commonPost(context, BASE_URL + "user", params, handler);
     }
 
@@ -834,12 +840,14 @@
     }
 
 
-    public static void getHomeType(Context context, String uid, String vtid, String dataKey,
+    public static void getHomeType(Context context, String uid, String vtid, String dataKey, int page, int pageSize,
                                    ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
-        params.put("Method", "getHomeType");
+        params.put("Method", "getHomeTypeNew");
         params.put("Uid", uid);
         params.put("Vtid", vtid);
+        params.put("Page", page + "");
+        params.put("PageSize", pageSize + "");
         if (dataKey != null) {
             params.put("DataKey", dataKey);
         }
@@ -1146,6 +1154,20 @@
     }
 
 
+    public static void uploadSession(Context context, String sessionId,
+                                     String type,
+                                     ResponseHandlerInterface handler) {
+        LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
+        params.put("Method", "uploadSession");
+        if (sessionId != null)
+            params.put("sessionId", sessionId);
+        if (type != null)
+            params.put("type", type);
+        commonPost(context, BASE_URL + "session", params, handler);
+
+    }
+
+
     /**
      * 鑾峰彇鍓ч泦鍒楄〃
      *
@@ -1157,12 +1179,13 @@
      * @param handler
      */
     public static void getVideoEpisodeList(Context context, String uid,
-                                           String ResourceId, String videoId, int page,
+                                           String ResourceId, String videoId, int page, int pageSize,
                                            ResponseHandlerInterface handler) {
         LinkedHashMap<String, String> params = new LinkedHashMap<String, String>();
         params.put("Method", "getVideoEpisodeList");
         params.put("Uid", uid);
         params.put("Page", page + "");
+        params.put("PageSize", pageSize + "");
         params.put("VideoId", videoId);
         params.put("ResourceId", ResourceId);
         commonPost(context, BASE_URL + "recommend", params, handler);

--
Gitblit v1.8.0