package com.seewo.ota.udi.model;

import androidx.annotation.Keep;
import f.i;
import f.z.d.g;
import f.z.d.k;

/* JADX INFO: compiled from: UpgradeInfo.kt */
/* JADX INFO: loaded from: classes.dex */
@i
@Keep
public final class UpgradeInfo {
    private final Boolean force;
    private final String path;
    private final RebootBy rebootBy;

    public UpgradeInfo(String str, RebootBy rebootBy, Boolean bool) {
        k.e(str, "path");
        k.e(rebootBy, "rebootBy");
        this.path = str;
        this.rebootBy = rebootBy;
        this.force = bool;
    }

    public static /* synthetic */ UpgradeInfo copy$default(UpgradeInfo upgradeInfo, String str, RebootBy rebootBy, Boolean bool, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = upgradeInfo.path;
        }
        if ((i2 & 2) != 0) {
            rebootBy = upgradeInfo.rebootBy;
        }
        if ((i2 & 4) != 0) {
            bool = upgradeInfo.force;
        }
        return upgradeInfo.copy(str, rebootBy, bool);
    }

    public final String component1() {
        return this.path;
    }

    public final RebootBy component2() {
        return this.rebootBy;
    }

    public final Boolean component3() {
        return this.force;
    }

    public final UpgradeInfo copy(String str, RebootBy rebootBy, Boolean bool) {
        k.e(str, "path");
        k.e(rebootBy, "rebootBy");
        return new UpgradeInfo(str, rebootBy, bool);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UpgradeInfo)) {
            return false;
        }
        UpgradeInfo upgradeInfo = (UpgradeInfo) obj;
        return k.a(this.path, upgradeInfo.path) && k.a(this.rebootBy, upgradeInfo.rebootBy) && k.a(this.force, upgradeInfo.force);
    }

    public final Boolean getForce() {
        return this.force;
    }

    public final String getPath() {
        return this.path;
    }

    public final RebootBy getRebootBy() {
        return this.rebootBy;
    }

    public int hashCode() {
        int iHashCode = ((this.path.hashCode() * 31) + this.rebootBy.hashCode()) * 31;
        Boolean bool = this.force;
        return iHashCode + (bool == null ? 0 : bool.hashCode());
    }

    public String toString() {
        return "UpgradeInfo(path=" + this.path + ", rebootBy=" + this.rebootBy + ", force=" + this.force + ')';
    }

    public /* synthetic */ UpgradeInfo(String str, RebootBy rebootBy, Boolean bool, int i2, g gVar) {
        this(str, (i2 & 2) != 0 ? new RebootBy(null, false, 3, null) : rebootBy, (i2 & 4) != 0 ? null : bool);
    }
}
