package com.cvte.dss.ups.camera.model;

import d.b.a.a.a;
import g.h0.c.g;
import g.h0.c.l;

/* JADX INFO: compiled from: UpgradeResult.kt */
/* JADX INFO: loaded from: classes.dex */
public final class UpgradeResult {
    private final String errorMsg;
    private final boolean result;

    public UpgradeResult(boolean z, String str) {
        this.result = z;
        this.errorMsg = str;
    }

    public static /* synthetic */ UpgradeResult copy$default(UpgradeResult upgradeResult, boolean z, String str, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z = upgradeResult.result;
        }
        if ((i2 & 2) != 0) {
            str = upgradeResult.errorMsg;
        }
        return upgradeResult.copy(z, str);
    }

    public final boolean component1() {
        return this.result;
    }

    public final String component2() {
        return this.errorMsg;
    }

    public final UpgradeResult copy(boolean z, String str) {
        return new UpgradeResult(z, str);
    }

    public boolean equals(Object obj) {
        if (this != obj) {
            if (obj instanceof UpgradeResult) {
                UpgradeResult upgradeResult = (UpgradeResult) obj;
                if (!(this.result == upgradeResult.result) || !l.a(this.errorMsg, upgradeResult.errorMsg)) {
                }
            }
            return false;
        }
        return true;
    }

    public final String getErrorMsg() {
        return this.errorMsg;
    }

    public final boolean getResult() {
        return this.result;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r0v1, types: [int] */
    /* JADX WARN: Type inference failed for: r0v4 */
    /* JADX WARN: Type inference failed for: r0v5 */
    public int hashCode() {
        boolean z = this.result;
        ?? r0 = z;
        if (z) {
            r0 = 1;
        }
        int i2 = r0 * 31;
        String str = this.errorMsg;
        return i2 + (str != null ? str.hashCode() : 0);
    }

    public String toString() {
        StringBuilder sbB = a.B("UpgradeResult(result=");
        sbB.append(this.result);
        sbB.append(", errorMsg=");
        return a.v(sbB, this.errorMsg, ")");
    }

    public /* synthetic */ UpgradeResult(boolean z, String str, int i2, g gVar) {
        this(z, (i2 & 2) != 0 ? null : str);
    }
}
