| | |
| | | } |
| | | |
| | | public static void getVideoDetail(Context context, String uid, |
| | | String ResourceId, String videoId, Integer position, String loginid, String type, |
| | | String ResourceId, String videoId, Integer position, String loginid, String type, String from, |
| | | ResponseHandlerInterface handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("Method", "getVideoDetail"); |
| | |
| | | params.put("VideoId", videoId); |
| | | if (position != null) { |
| | | params.put("Position", position + ""); |
| | | } |
| | | |
| | | if (from != null) { |
| | | params.put("From", from + ""); |
| | | } |
| | | params.put("ResourceId", ResourceId); |
| | | params.put("Type", type); |
| | |
| | | for (Iterator<String> its = params.keySet().iterator(); its.hasNext(); ) { |
| | | String key = its.next(); |
| | | if (params.get(key) != null) { |
| | | newParams.put(key,params.get(key)); |
| | | newParams.put(key, params.get(key)); |
| | | } |
| | | } |
| | | |