Lawrence
2020-06-10 76a75bf3d06b25cefee22245b4fb1eca0225f181
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package com.genersoft.iot.vmp.storager;
 
import java.util.List;
 
import com.genersoft.iot.vmp.gb28181.bean.Device;
 
/**    
 * @Description:视频设备数据存储接口
 * @author: songww
 * @date:   2020年5月6日 下午2:14:31     
 */
public interface IVideoManagerStorager {
    
    /**   
     * 根据设备ID判断设备是否存在
     * 
     * @param deviceId 设备ID
     * @return true:存在  false:不存在
     */
    public boolean exists(String deviceId);
    
    /**   
     * 视频设备创建
     * 
     * @param device 设备对象
     * @return true:创建成功  false:创建失败
     */
    public boolean create(Device device);
    
    /**   
     * 视频设备更新
     * 
     * @param device 设备对象
     * @return true:创建成功  false:创建失败
     */
    public boolean update(Device device);
    
    /**   
     * 获取设备
     * 
     * @param deviceId 设备ID
     * @return DShadow 设备对象
     */
    public Device queryVideoDevice(String deviceId);
    
    /**   
     * 获取多个设备
     * 
     * @param deviceIds 设备ID数组
     * @return List<Device> 设备对象数组
     */
    public List<Device> queryVideoDeviceList(String[] deviceIds);
    
    /**   
     * 删除设备
     * 
     * @param deviceId 设备ID
     * @return true:删除成功  false:删除失败
     */
    public boolean delete(String deviceId);
    
    /**   
     * 更新设备在线
     * 
     * @param deviceId 设备ID
     * @return true:更新成功  false:更新失败
     */
    public boolean online(String deviceId);
    
    /**   
     * 更新设备离线
     * 
     * @param deviceId 设备ID
     * @return true:更新成功  false:更新失败
     */
    public boolean outline(String deviceId);
}