Class ClientSendCmd
java.lang.Object
io.github.lunasaw.gbproxy.client.transmit.cmd.ClientSendCmd
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
deviceAck
(FromDevice fromDevice, ToDevice toDevice) 回复ACKstatic String
deviceAck
(FromDevice fromDevice, ToDevice toDevice, String callId) static String
deviceAck
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) static String
deviceAlarmNotify
(FromDevice fromDevice, ToDevice toDevice, DeviceAlarm deviceAlarm) 告警上报static String
deviceAlarmNotify
(FromDevice fromDevice, ToDevice toDevice, DeviceAlarmNotify deviceAlarmNotify) 告警上报static String
deviceBye
(FromDevice fromDevice, ToDevice toDevice) 向上级发送BYEstatic String
deviceChannelCatalogResponse
(FromDevice fromDevice, ToDevice toDevice, DeviceResponse deviceResponse) 设备目录查询static String
deviceChannelCatalogResponse
(FromDevice fromDevice, ToDevice toDevice, List<DeviceItem> deviceItems) 上报设备信息static void
deviceChannelCatalogResponse
(FromDevice fromDevice, ToDevice toDevice, List<DeviceItem> deviceItems, String sn) static String
deviceChannelUpdateCatlog
(FromDevice fromDevice, ToDevice toDevice, List<DeviceUpdateItem> deviceItems, SubscribeInfo subscribeInfo) 设备通道更新通知static String
deviceConfigResponse
(FromDevice fromDevice, ToDevice toDevice, DeviceConfigResponse deviceConfigResponse) 设备配置上报static String
deviceConfigResponse
(FromDevice fromDevice, ToDevice toDevice, DeviceConfigResponse.BasicParam basicParam) static String
deviceInfoResponse
(FromDevice fromDevice, ToDevice toDevice, DeviceInfo deviceInfo) 向上级回复DeviceInfo查询信息static String
deviceKeepLiveNotify
(FromDevice fromDevice, ToDevice toDevice, String status) 心跳设备状态static String
deviceKeepLiveNotify
(FromDevice fromDevice, ToDevice toDevice, String status, Event errorEvent) static String
deviceKeepLiveNotify
(FromDevice fromDevice, ToDevice toDevice, String status, Event errorEvent, Event okEvent) static String
deviceMediaStatusNotify
(FromDevice fromDevice, ToDevice toDevice, String notifyType) 流媒体状态推送static String
deviceOtherUpdateCatlog
(FromDevice fromDevice, ToDevice toDevice, List<DeviceOtherUpdateNotify.OtherItem> deviceItems, SubscribeInfo subscribeInfo) 事件更新推送static String
deviceRecordResponse
(FromDevice fromDevice, ToDevice toDevice, DeviceRecord deviceRecord) 设备录像上报static void
deviceRecordResponse
(FromDevice fromDevice, ToDevice toDevice, List<DeviceRecord.RecordItem> deviceRecordItems, String sn) 设备录像上报static String
deviceRegister
(FromDevice fromDevice, ToDevice toDevice, Integer expires) 设备注册static String
deviceRegister
(FromDevice fromDevice, ToDevice toDevice, Integer expires, Event event) static String
deviceStatusResponse
(FromDevice fromDevice, ToDevice toDevice, String online) 推送设备状态信息static String
deviceUnRegister
(FromDevice fromDevice, ToDevice toDevice) 设备注销static String
MobilePositionNotify
(FromDevice fromDevice, ToDevice toDevice, MobilePositionNotify mobilePositionNotify, SubscribeInfo subscribeInfo) 设备位置推送
-
Constructor Details
-
ClientSendCmd
public ClientSendCmd()
-
-
Method Details
-
deviceAlarmNotify
public static String deviceAlarmNotify(FromDevice fromDevice, ToDevice toDevice, DeviceAlarmNotify deviceAlarmNotify) 告警上报- Parameters:
fromDevice
-toDevice
-deviceAlarmNotify
-- Returns:
-
deviceAlarmNotify
public static String deviceAlarmNotify(FromDevice fromDevice, ToDevice toDevice, DeviceAlarm deviceAlarm) 告警上报- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
deviceKeepLiveNotify
心跳设备状态- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备status
-- Returns:
-
deviceKeepLiveNotify
public static String deviceKeepLiveNotify(FromDevice fromDevice, ToDevice toDevice, String status, Event errorEvent) -
deviceKeepLiveNotify
-
deviceChannelCatalogResponse
public static String deviceChannelCatalogResponse(FromDevice fromDevice, ToDevice toDevice, DeviceResponse deviceResponse) 设备目录查询- Parameters:
fromDevice
-toDevice
-deviceResponse
-- Returns:
-
deviceChannelCatalogResponse
public static void deviceChannelCatalogResponse(FromDevice fromDevice, ToDevice toDevice, List<DeviceItem> deviceItems, String sn) -
deviceChannelCatalogResponse
public static String deviceChannelCatalogResponse(FromDevice fromDevice, ToDevice toDevice, List<DeviceItem> deviceItems) 上报设备信息- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备deviceItems
- 通道状态- Returns:
-
deviceInfoResponse
public static String deviceInfoResponse(FromDevice fromDevice, ToDevice toDevice, DeviceInfo deviceInfo) 向上级回复DeviceInfo查询信息- Parameters:
fromDevice
-toDevice
-deviceInfo
-- Returns:
-
deviceStatusResponse
推送设备状态信息- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备online
- "ONLINE":"OFFLINE"- Returns:
-
MobilePositionNotify
public static String MobilePositionNotify(FromDevice fromDevice, ToDevice toDevice, MobilePositionNotify mobilePositionNotify, SubscribeInfo subscribeInfo) 设备位置推送- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备mobilePositionNotify
-- Returns:
-
deviceChannelUpdateCatlog
public static String deviceChannelUpdateCatlog(FromDevice fromDevice, ToDevice toDevice, List<DeviceUpdateItem> deviceItems, SubscribeInfo subscribeInfo) 设备通道更新通知- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备deviceItems
- 通道列表- Returns:
-
deviceOtherUpdateCatlog
public static String deviceOtherUpdateCatlog(FromDevice fromDevice, ToDevice toDevice, List<DeviceOtherUpdateNotify.OtherItem> deviceItems, SubscribeInfo subscribeInfo) 事件更新推送- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备deviceItems
- 推送事件- Returns:
-
deviceRecordResponse
public static String deviceRecordResponse(FromDevice fromDevice, ToDevice toDevice, DeviceRecord deviceRecord) 设备录像上报- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备deviceRecord
- 录像响应- Returns:
-
deviceRecordResponse
public static void deviceRecordResponse(FromDevice fromDevice, ToDevice toDevice, List<DeviceRecord.RecordItem> deviceRecordItems, String sn) 设备录像上报- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备deviceRecordItems
- 录像文件
-
deviceConfigResponse
public static String deviceConfigResponse(FromDevice fromDevice, ToDevice toDevice, DeviceConfigResponse deviceConfigResponse) 设备配置上报- Parameters:
fromDevice
-toDevice
-deviceConfigResponse
-- Returns:
-
deviceConfigResponse
public static String deviceConfigResponse(FromDevice fromDevice, ToDevice toDevice, DeviceConfigResponse.BasicParam basicParam) -
deviceMediaStatusNotify
public static String deviceMediaStatusNotify(FromDevice fromDevice, ToDevice toDevice, String notifyType) 流媒体状态推送- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备notifyType
- 121- Returns:
-
deviceBye
向上级发送BYE- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceAck
回复ACK- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceAck
-
deviceAck
public static String deviceAck(FromDevice fromDevice, ToDevice toDevice, String content, String callId) -
deviceRegister
设备注册- Parameters:
fromDevice
- 当前设备toDevice
- 注册平台expires
- 注册时间 0注销- Returns:
-
deviceRegister
public static String deviceRegister(FromDevice fromDevice, ToDevice toDevice, Integer expires, Event event) -
deviceUnRegister
设备注销- Parameters:
fromDevice
-toDevice
-- Returns:
-