648540858
2021-11-17 c23932eb00edfa5f734b0d17eced838c5c7577c0
src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java
@@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.gb28181.event;
import com.genersoft.iot.vmp.gb28181.bean.Device;
import com.genersoft.iot.vmp.gb28181.event.platformKeepaliveExpire.PlatformKeepaliveExpireEvent;
import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent;
import org.springframework.beans.factory.annotation.Autowired;
@@ -12,7 +13,7 @@
import com.genersoft.iot.vmp.gb28181.event.online.OnlineEvent;
/**    
 * @Description:Event事件通知推送器,支持推送在线事件、离线事件
 * @description:Event事件通知推送器,支持推送在线事件、离线事件
 * @author: swwheihei
 * @date:   2020年5月6日 上午11:30:50     
 */
@@ -22,9 +23,9 @@
   @Autowired
    private ApplicationEventPublisher applicationEventPublisher;
   
   public void onlineEventPublish(String deviceId, String from) {
   public void onlineEventPublish(Device device, String from) {
      OnlineEvent onEvent = new OnlineEvent(this);
      onEvent.setDeviceId(deviceId);
      onEvent.setDevice(device);
      onEvent.setFrom(from);
        applicationEventPublisher.publishEvent(onEvent);
    }