Commit 985082d33930868c3cc1723f28fd9aaae9013a8f
1 parent
9d56da56
添加缺少的内容
Showing
1 changed file
with
22 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/AssistRESTfulUtils.java
| @@ -21,6 +21,7 @@ public class AssistRESTfulUtils { | @@ -21,6 +21,7 @@ public class AssistRESTfulUtils { | ||
| 21 | 21 | ||
| 22 | private final static Logger logger = LoggerFactory.getLogger(AssistRESTfulUtils.class); | 22 | private final static Logger logger = LoggerFactory.getLogger(AssistRESTfulUtils.class); |
| 23 | 23 | ||
| 24 | + | ||
| 24 | public interface RequestCallback{ | 25 | public interface RequestCallback{ |
| 25 | void run(JSONObject response); | 26 | void run(JSONObject response); |
| 26 | } | 27 | } |
| @@ -145,4 +146,25 @@ public class AssistRESTfulUtils { | @@ -145,4 +146,25 @@ public class AssistRESTfulUtils { | ||
| 145 | return sendGet(mediaServerItem, "api/record/addStreamCallInfo",param, callback); | 146 | return sendGet(mediaServerItem, "api/record/addStreamCallInfo",param, callback); |
| 146 | } | 147 | } |
| 147 | 148 | ||
| 149 | + public JSONObject getDateList(MediaServerItem mediaServerItem, String app, String stream, int year, int month) { | ||
| 150 | + Map<String, Object> param = new HashMap<>(); | ||
| 151 | + param.put("app", app); | ||
| 152 | + param.put("stream", stream); | ||
| 153 | + param.put("year", year); | ||
| 154 | + param.put("month", month); | ||
| 155 | + return sendGet(mediaServerItem, "api/record/date/list", param, null); | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + public JSONObject getFileList(MediaServerItem mediaServerItem, int page, int count, String app, String stream, | ||
| 159 | + String startTime, String endTime) { | ||
| 160 | + Map<String, Object> param = new HashMap<>(); | ||
| 161 | + param.put("app", app); | ||
| 162 | + param.put("stream", stream); | ||
| 163 | + param.put("page", page); | ||
| 164 | + param.put("count", count); | ||
| 165 | + param.put("startTime", startTime); | ||
| 166 | + param.put("endTime", endTime); | ||
| 167 | + return sendGet(mediaServerItem, "api/record/file/listWithDate", param, null); | ||
| 168 | + } | ||
| 169 | + | ||
| 148 | } | 170 | } |