package com.usky.sas.service.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(
        ignoreUnknown = true
)
public class AlarmEventInfoResult {
    private AlarmEventInfo eventInfo;

    public AlarmEventInfoResult() {
    }

    public AlarmEventInfo getEventInfo() {
        return this.eventInfo;
    }

    public AlarmEventInfoResult setEventInfo(AlarmEventInfo eventInfo) {
        this.eventInfo = eventInfo;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof AlarmEventInfoResult)) {
            return false;
        } else {
            AlarmEventInfoResult other = (AlarmEventInfoResult)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$eventInfo = this.getEventInfo();
                Object other$eventInfo = other.getEventInfo();
                if (this$eventInfo == null) {
                    if (other$eventInfo != null) {
                        return false;
                    }
                } else if (!this$eventInfo.equals(other$eventInfo)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof AlarmEventInfoResult;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $eventInfo = this.getEventInfo();
        result = result * 59 + ($eventInfo == null ? 43 : $eventInfo.hashCode());
        return result;
    }

    public String toString() {
        return "AlarmEventInfoResult(eventInfo=" + this.getEventInfo() + ")";
    }
}
