package com.usky.rule.vo.log;

import com.usky.rule.vo.action.AlarmEventAction;

import java.util.List;

public class AlarmActionLog {
    private List<AlarmEventLog> alarms;
    private String time;

    public List<AlarmEventLog> getAlarms() {
        return this.alarms;
    }

    public String getTime() {
        return this.time;
    }

    public void setAlarms(final List<AlarmEventLog> alarms) {
        this.alarms = alarms;
    }

    public void setTime(final String time) {
        this.time = time;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof AlarmActionLog)) {
            return false;
        } else {
            AlarmActionLog other = (AlarmActionLog)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$alarms = this.getAlarms();
                Object other$alarms = other.getAlarms();
                if (this$alarms == null) {
                    if (other$alarms != null) {
                        return false;
                    }
                } else if (!this$alarms.equals(other$alarms)) {
                    return false;
                }

                Object this$time = this.getTime();
                Object other$time = other.getTime();
                if (this$time == null) {
                    if (other$time != null) {
                        return false;
                    }
                } else if (!this$time.equals(other$time)) {
                    return false;
                }

                return true;
            }
        }
    }

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

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

    public String toString() {
        return "AlarmActionLog(alarms=" + this.getAlarms() + ", time=" + this.getTime() + ")";
    }

    public AlarmActionLog() {
    }
}
