package com.inspect.algmodel;

import com.inspect.base.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Setter
@Getter
public class AlgModelDataDomain extends BaseEntity {
    private String token;
    private String sectionId;
    private String sectionName;
    private String stationId;
    private String stationName;
    private String algorithmManufacturer;
    private String version;
    private String lastVersion;
    private int midVersionNum;
    private int runState;
    private String recordTime;
    private String modelDesc;

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        AlgModelDataDomain that = (AlgModelDataDomain) object;
        return midVersionNum == that.midVersionNum && runState == that.runState && Objects.equals(token, that.token) && Objects.equals(sectionId, that.sectionId) && Objects.equals(sectionName, that.sectionName) && Objects.equals(stationId, that.stationId) && Objects.equals(stationName, that.stationName) && Objects.equals(algorithmManufacturer, that.algorithmManufacturer) && Objects.equals(version, that.version) && Objects.equals(lastVersion, that.lastVersion) && Objects.equals(recordTime, that.recordTime) && Objects.equals(modelDesc, that.modelDesc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(token, sectionId, sectionName, stationId, stationName, algorithmManufacturer, version, lastVersion, midVersionNum, runState, recordTime, modelDesc);
    }

    @Override
    public String toString() {
        return "AlgModelDataDomain{" +
                "token='" + token + '\'' +
                ", sectionId='" + sectionId + '\'' +
                ", sectionName='" + sectionName + '\'' +
                ", stationId='" + stationId + '\'' +
                ", stationName='" + stationName + '\'' +
                ", algorithmManufacturer='" + algorithmManufacturer + '\'' +
                ", version='" + version + '\'' +
                ", lastVersion='" + lastVersion + '\'' +
                ", midVersionNum=" + midVersionNum +
                ", runState=" + runState +
                ", recordTime='" + recordTime + '\'' +
                ", modelDesc='" + modelDesc + '\'' +
                '}';
    }
}
