package com.ifpdos.debugmenu.upgrades.entrties;

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

/* JADX INFO: compiled from: UpsDataInfo.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class UpsDataInfo extends DeviceInfo {
    private final String id;
    private final String otaKey;
    private final String upgradeFileName;
    private final String version;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public UpsDataInfo(String str, String str2, String str3, String str4) {
        super(str2, str3, str4);
        l.f(str, "id");
        l.f(str2, "version");
        l.f(str3, "otaKey");
        l.f(str4, "upgradeFileName");
        this.id = str;
        this.version = str2;
        this.otaKey = str3;
        this.upgradeFileName = str4;
    }

    public static /* synthetic */ UpsDataInfo copy$default(UpsDataInfo upsDataInfo, String str, String str2, String str3, String str4, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = upsDataInfo.id;
        }
        if ((i2 & 2) != 0) {
            str2 = upsDataInfo.version;
        }
        if ((i2 & 4) != 0) {
            str3 = upsDataInfo.otaKey;
        }
        if ((i2 & 8) != 0) {
            str4 = upsDataInfo.upgradeFileName;
        }
        return upsDataInfo.copy(str, str2, str3, str4);
    }

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

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

    public final String component3() {
        return this.otaKey;
    }

    public final String component4() {
        return this.upgradeFileName;
    }

    public final UpsDataInfo copy(String str, String str2, String str3, String str4) {
        l.f(str, "id");
        l.f(str2, "version");
        l.f(str3, "otaKey");
        l.f(str4, "upgradeFileName");
        return new UpsDataInfo(str, str2, str3, str4);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UpsDataInfo)) {
            return false;
        }
        UpsDataInfo upsDataInfo = (UpsDataInfo) obj;
        return l.a(this.id, upsDataInfo.id) && l.a(this.version, upsDataInfo.version) && l.a(this.otaKey, upsDataInfo.otaKey) && l.a(this.upgradeFileName, upsDataInfo.upgradeFileName);
    }

    public final String getId() {
        return this.id;
    }

    @Override // com.ifpdos.debugmenu.upgrades.entrties.DeviceInfo
    public String getOtaKey() {
        return this.otaKey;
    }

    @Override // com.ifpdos.debugmenu.upgrades.entrties.DeviceInfo
    public String getUpgradeFileName() {
        return this.upgradeFileName;
    }

    @Override // com.ifpdos.debugmenu.upgrades.entrties.DeviceInfo
    public String getVersion() {
        return this.version;
    }

    public int hashCode() {
        return this.upgradeFileName.hashCode() + a.x(this.otaKey, a.x(this.version, this.id.hashCode() * 31, 31), 31);
    }

    public String toString() {
        StringBuilder sbB = a.B("UpsDataInfo(id=");
        sbB.append(this.id);
        sbB.append(", version=");
        sbB.append(this.version);
        sbB.append(", otaKey=");
        sbB.append(this.otaKey);
        sbB.append(", upgradeFileName=");
        return a.u(sbB, this.upgradeFileName, ')');
    }
}
