package com.iplatform.tcp.util.ws;
|
|
import com.walker.tcp.websocket.JsonResponse;
|
|
import java.util.Map;
|
|
/**
|
* 设备离线后,推送给websocket的响应对象定义
|
* @author 时克英
|
* @date 2019-01-10
|
*
|
*/
|
public class OfflineResponse extends JsonResponse {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -4170534196705654880L;
|
|
@Override
|
protected void translateProperties(Map<String, Object> result) {
|
result.put("name", this.getName());
|
}
|
|
@Override
|
public String getProtocolNum() {
|
return "equip_offline";
|
}
|
}
|