| | |
| | | |
| | | 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 content;//内容 |
| | | private String homeName;//住宅名称 |
| | | private String time;//时间 |
| | | private int grade;//等级 |
| | | private boolean isRead;//是否已经读取 |
| | | private String deviceOidId;//设备oid id |
| | | private String deviceOid;//设备oid |
| | | private String deviceDesc;//设备备注 |
| | | |
| | | public String getContent() { |
| | | return content == null ? "" : content; |
| | | |
| | | private String deviceType;//设备类型(INV : 逆变器, BMS : BMS控制盒, BATTERY : 电池单元) |
| | | private String deviceTypeDesc;//设备类型描述 |
| | | |
| | | |
| | | 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 getDeviceType() { |
| | | return deviceType == null ? "" : deviceType; |
| | | } |
| | | |
| | | public void setContent(String content) { |
| | | this.content = content; |
| | | public void setDeviceType(String deviceType) { |
| | | this.deviceType = deviceType; |
| | | } |
| | | |
| | | public String getDeviceTypeDesc() { |
| | | return deviceTypeDesc == null ? "" : deviceTypeDesc; |
| | | } |
| | | |
| | | public void setDeviceTypeDesc(String deviceTypeDesc) { |
| | | this.deviceTypeDesc = deviceTypeDesc; |
| | | } |
| | | |
| | | 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() { |
| | |
| | | this.homeName = homeName; |
| | | } |
| | | |
| | | public String getTime() { |
| | | return time == null ? "" : time; |
| | | public String getStatus() { |
| | | return status == null ? "" : status; |
| | | } |
| | | |
| | | public void setTime(String time) { |
| | | this.time = time; |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public int getGrade() { |
| | | return grade; |
| | | public Long getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setGrade(int grade) { |
| | | this.grade = grade; |
| | | public void setCreateTime(Long createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 电站完整的地址 |
| | | * |
| | | * @return - |
| | | */ |
| | | public String getLocationAddress() { |
| | | |
| | | return location.getNationName() + ">" + location.getProvinceName() + ">" + location.getCityName() + ">" + address; |
| | | |
| | | } |
| | | |
| | | |
| | | } |