|  |  |  | 
|---|
|  |  |  | package com.genersoft.iot.vmp.gb28181.event.online; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.genersoft.iot.vmp.gb28181.bean.Device; | 
|---|
|  |  |  | import org.springframework.context.ApplicationEvent; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Description:TODO(这里用一句话描述这个类的作用) | 
|---|
|  |  |  | * @author: songww | 
|---|
|  |  |  | * @description: 在线事件类 | 
|---|
|  |  |  | * @author: swwheihei | 
|---|
|  |  |  | * @date:   2020年5月6日 上午11:32:56 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class OnlineEvent extends ApplicationEvent { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Title:  OnlineEvent | 
|---|
|  |  |  | * @Description:    TODO(这里用一句话描述这个方法的作用) | 
|---|
|  |  |  | * @param:  @param source | 
|---|
|  |  |  | * @throws | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private static final long serialVersionUID = 1L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public OnlineEvent(Object source) { | 
|---|
|  |  |  | super(source); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String deviceId; | 
|---|
|  |  |  | private Device device; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String from; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeviceId() { | 
|---|
|  |  |  | return deviceId; | 
|---|
|  |  |  | private int  expires; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Device getDevice() { | 
|---|
|  |  |  | return device; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setDeviceId(String deviceId) { | 
|---|
|  |  |  | this.deviceId = deviceId; | 
|---|
|  |  |  | public void setDevice(Device device) { | 
|---|
|  |  |  | this.device = device; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getFrom() { | 
|---|
|  |  |  | return from; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setFrom(String from) { | 
|---|
|  |  |  | this.from = from; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getExpires() { | 
|---|
|  |  |  | return expires; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setExpires(int expires) { | 
|---|
|  |  |  | this.expires = expires; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|