package com.hdl.photovoltaic.ui.bean;
|
|
import java.io.Serializable;
|
|
/**
|
* 警告消息实体
|
*/
|
public class MessageBean implements Serializable {
|
|
private Long msgId;//消息id
|
private String type;//FAULT:故障,WARN:告警,EVENT:事件
|
private String title;//标题
|
private String homeId;//电站id
|
private String homeName;//电站名称
|
private String status;//UNTREATED:未处理,PROCESSED:已处理
|
private Long createTime;//消息时间(报警时间)
|
|
private String deviceOidId;//设备oid id
|
private String deviceOid;//设备oid
|
private String deviceDesc;//设备备注
|
|
private String typeDesc;//类型描述
|
private String effectScope;//影响范围 NO_EFFECT : 无影响范围报警
|
private String effectScopeDesc;//影响范围描述
|
|
private String address;//详细地址
|
|
|
private boolean isRead;//是否已经读取(true=读取)
|
|
private HouseInfoBean.Location location = new HouseInfoBean.Location();//电站地址
|
|
public String getDeviceOidId() {
|
return deviceOidId == null ? "" : deviceOidId;
|
}
|
|
public void setDeviceOidId(String deviceOidId) {
|
this.deviceOidId = deviceOidId;
|
}
|
|
public String getDeviceOid() {
|
return deviceOid == null ? "" : deviceOid;
|
}
|
|
public void setDeviceOid(String deviceOid) {
|
this.deviceOid = deviceOid;
|
}
|
|
public String getDeviceDesc() {
|
return deviceDesc == null ? "" : deviceDesc;
|
}
|
|
public void setDeviceDesc(String deviceDesc) {
|
this.deviceDesc = deviceDesc;
|
}
|
|
public String getTypeDesc() {
|
return typeDesc == null ? "" : typeDesc;
|
}
|
|
public void setTypeDesc(String typeDesc) {
|
this.typeDesc = typeDesc;
|
}
|
|
public String getEffectScope() {
|
return effectScope == null ? "" : effectScope;
|
}
|
|
public void setEffectScope(String effectScope) {
|
this.effectScope = effectScope;
|
}
|
|
public String getEffectScopeDesc() {
|
return effectScopeDesc == null ? "" : effectScopeDesc;
|
}
|
|
public void setEffectScopeDesc(String effectScopeDesc) {
|
this.effectScopeDesc = effectScopeDesc;
|
}
|
|
public String getAddress() {
|
return address == null ? "" : address;
|
}
|
|
public void setAddress(String address) {
|
this.address = address;
|
}
|
|
public HouseInfoBean.Location getLocation() {
|
return location;
|
}
|
|
public void setLocation(HouseInfoBean.Location location) {
|
this.location = location;
|
}
|
|
|
public Long getMsgId() {
|
return msgId;
|
}
|
|
public void setMsgId(Long msgId) {
|
this.msgId = msgId;
|
}
|
|
public String getType() {
|
return type == null ? "" : type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public String getTitle() {
|
return title == null ? "" : title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getHomeId() {
|
return homeId == null ? "" : homeId;
|
}
|
|
public void setHomeId(String homeId) {
|
this.homeId = homeId;
|
}
|
|
public String getHomeName() {
|
return homeName == null ? "" : homeName;
|
}
|
|
public void setHomeName(String homeName) {
|
this.homeName = homeName;
|
}
|
|
public String getStatus() {
|
return status == null ? "" : status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
public Long getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Long createTime) {
|
this.createTime = createTime;
|
}
|
|
|
public boolean isRead() {
|
return isRead;
|
}
|
|
public void setRead(boolean read) {
|
isRead = read;
|
}
|
|
|
/**
|
* 电站完整的地址
|
*
|
* @return -
|
*/
|
public String getLocationAddress() {
|
|
return location.getNationName() + ">" + location.getProvinceName() + ">" + location.getCityName() + ">" + address;
|
|
}
|
|
|
}
|