| | |
| | | } |
| | | |
| | | |
| | | public static void getHomeAd(Context context, String uid, String vtid, |
| | | public static void getHomeAd(Context context, String uid, String vtid, String dataKey, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("Method", "getHomeAd"); |
| | | params.put("Uid", uid); |
| | | params.put("Vtid", vtid); |
| | | if (dataKey != null) { |
| | | params.put("DataKey", dataKey); |
| | | } |
| | | commonPost(context, BASE_URL + "recommend", params, handler); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public static void getHomeType(Context context, String uid, String vtid, |
| | | public static void getHomeType(Context context, String uid, String vtid, String dataKey, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("Method", "getHomeType"); |
| | | params.put("Uid", uid); |
| | | params.put("Vtid", vtid); |
| | | if (dataKey != null) { |
| | | params.put("DataKey", dataKey); |
| | | } |
| | | commonPost(context, BASE_URL + "recommend", params, handler); |
| | | } |
| | | |