![JAR search and dependency download from the Maven repository](/logo.png)
com.envision.eos.event.api.bo.EventSR Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enos-event-api Show documentation
Show all versions of enos-event-api Show documentation
1.0 初版
1.1 增加了event的flag和custom_attr字段。
1.2 规范了api的命名
The newest version!
package com.envision.eos.event.api.bo;
import java.io.Serializable;
/**
* Copyright http://www.envisioncn.com/
* All rights reserved.
*
* @author jonnas.li
*/
public class EventSR implements Serializable {
private static final long serialVersionUID = -7299457428612663453L;
//{主数据ID,风机名,SC/HC名,SR描述(SC/HC中文描述),时间(SC/HC触发时间,不需要毫秒数,当地时间,非UTC时间)}
//mdmId,customer_id,site_id,code,code_desc,rule_id,`timestamp`,`timestamp_utc`
private String mdmId;
private String customerId;
private String siteId;
private String code;
private String codeDesc;
private String ruleId;
private long timestamp;
private long timestampUtc;
public String getMdmId() {
return mdmId;
}
public void setMdmId(String mdmId) {
this.mdmId = mdmId;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getSiteId() {
return siteId;
}
public void setSiteId(String siteId) {
this.siteId = siteId;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getCodeDesc() {
return codeDesc;
}
public void setCodeDesc(String codeDesc) {
this.codeDesc = codeDesc;
}
public String getRuleId() {
return ruleId;
}
public void setRuleId(String ruleId) {
this.ruleId = ruleId;
}
public long getTimestamp() {
return timestamp;
}
public void setTimestamp(long timestamp) {
this.timestamp = timestamp;
}
public long getTimestampUtc() {
return timestampUtc;
}
public void setTimestampUtc(long timestampUtc) {
this.timestampUtc = timestampUtc;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EventSR eventSR = (EventSR) o;
if (timestamp != eventSR.timestamp) return false;
if (timestampUtc != eventSR.timestampUtc) return false;
if (!mdmId.equals(eventSR.mdmId)) return false;
if (!customerId.equals(eventSR.customerId)) return false;
if (!siteId.equals(eventSR.siteId)) return false;
if (!code.equals(eventSR.code)) return false;
if (!codeDesc.equals(eventSR.codeDesc)) return false;
return ruleId.equals(eventSR.ruleId);
}
@Override
public int hashCode() {
int result = mdmId.hashCode();
result = 31 * result + customerId.hashCode();
result = 31 * result + siteId.hashCode();
result = 31 * result + code.hashCode();
result = 31 * result + codeDesc.hashCode();
result = 31 * result + ruleId.hashCode();
result = 31 * result + (int) (timestamp ^ (timestamp >>> 32));
result = 31 * result + (int) (timestampUtc ^ (timestampUtc >>> 32));
return result;
}
@Override
public String toString() {
return "EventSR{" +
"mdmId='" + mdmId + '\'' +
", customerId='" + customerId + '\'' +
", siteId='" + siteId + '\'' +
", code='" + code + '\'' +
", codeDesc='" + codeDesc + '\'' +
", ruleId='" + ruleId + '\'' +
", timestamp='" + timestamp + '\'' +
", timestampUtc='" + timestampUtc + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy