package com.qianwen.smartman.modules.mdc.entity; import java.io.Serializable; import java.sql.Timestamp; /** * 设备报警 */ public class SuperAlarm extends SuperAggregate implements Serializable { private static final long serialVersionUID = 1123326427413588953L; private Timestamp ts; private String code; private String message; private String level; public void setTs(final Timestamp ts) { this.ts = ts; } public void setCode(final String code) { this.code = code; } public void setMessage(final String message) { this.message = message; } public void setLevel(final String level) { this.level = level; } @Override // org.springblade.modules.mdc.entity.SuperAggregate public String toString() { return "SuperAlarm(ts=" + getTs() + ", code=" + getCode() + ", message=" + getMessage() + ", level=" + getLevel() + ")"; } public SuperAlarm() { } public SuperAlarm(final Timestamp ts, final String code, final String message, final String level) { this.ts = ts; this.code = code; this.message = message; this.level = level; } @Override // org.springblade.modules.mdc.entity.SuperAggregate public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof SuperAlarm) { SuperAlarm other = (SuperAlarm) o; if (other.canEqual(this) && super.equals(o)) { Object this$ts = getTs(); Object other$ts = other.getTs(); if (this$ts == null) { if (other$ts != null) { return false; } } else if (!this$ts.equals(other$ts)) { return false; } Object this$code = getCode(); Object other$code = other.getCode(); if (this$code == null) { if (other$code != null) { return false; } } else if (!this$code.equals(other$code)) { return false; } Object this$message = getMessage(); Object other$message = other.getMessage(); if (this$message == null) { if (other$message != null) { return false; } } else if (!this$message.equals(other$message)) { return false; } Object this$level = getLevel(); Object other$level = other.getLevel(); return this$level == null ? other$level == null : this$level.equals(other$level); } return false; } return false; } @Override // org.springblade.modules.mdc.entity.SuperAggregate protected boolean canEqual(final Object other) { return other instanceof SuperAlarm; } @Override // org.springblade.modules.mdc.entity.SuperAggregate public int hashCode() { int result = super.hashCode(); Object $ts = getTs(); int result2 = (result * 59) + ($ts == null ? 43 : $ts.hashCode()); Object $code = getCode(); int result3 = (result2 * 59) + ($code == null ? 43 : $code.hashCode()); Object $message = getMessage(); int result4 = (result3 * 59) + ($message == null ? 43 : $message.hashCode()); Object $level = getLevel(); return (result4 * 59) + ($level == null ? 43 : $level.hashCode()); } public Timestamp getTs() { return this.ts; } public String getCode() { return this.code; } public String getMessage() { return this.message; } public String getLevel() { return this.level; } }