Class ClientSendCmd

java.lang.Object
io.github.lunasaw.gbproxy.client.transmit.cmd.ClientSendCmd

public class ClientSendCmd extends Object
Author:
luna
  • 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

      public static String deviceKeepLiveNotify(FromDevice fromDevice, ToDevice toDevice, String status)
      心跳设备状态
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      status -
      Returns:
    • deviceKeepLiveNotify

      public static String deviceKeepLiveNotify(FromDevice fromDevice, ToDevice toDevice, String status, Event errorEvent)
    • deviceKeepLiveNotify

      public static String deviceKeepLiveNotify(FromDevice fromDevice, ToDevice toDevice, String status, Event errorEvent, Event okEvent)
    • 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

      public static String deviceStatusResponse(FromDevice fromDevice, ToDevice toDevice, String online)
      推送设备状态信息
      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

      public static String deviceBye(FromDevice fromDevice, ToDevice toDevice)
      向上级发送BYE
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
    • deviceAck

      public static String deviceAck(FromDevice fromDevice, ToDevice toDevice)
      回复ACK
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
    • deviceAck

      public static String deviceAck(FromDevice fromDevice, ToDevice toDevice, String callId)
    • deviceAck

      public static String deviceAck(FromDevice fromDevice, ToDevice toDevice, String content, String callId)
    • deviceRegister

      public static String deviceRegister(FromDevice fromDevice, ToDevice toDevice, Integer expires)
      设备注册
      Parameters:
      fromDevice - 当前设备
      toDevice - 注册平台
      expires - 注册时间 0注销
      Returns:
    • deviceRegister

      public static String deviceRegister(FromDevice fromDevice, ToDevice toDevice, Integer expires, Event event)
    • deviceUnRegister

      public static String deviceUnRegister(FromDevice fromDevice, ToDevice toDevice)
      设备注销
      Parameters:
      fromDevice -
      toDevice -
      Returns: