package com.seewo.ota.udi.model;

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

/* JADX INFO: compiled from: UpgradeEvent.kt */
/* JADX INFO: loaded from: classes.dex */
@i
@Keep
public final class UpgradeEvent {
    private final String code;
    private final Status status;

    public UpgradeEvent(String str, Status status) {
        k.e(str, "code");
        k.e(status, "status");
        this.code = str;
        this.status = status;
    }

    public static /* synthetic */ UpgradeEvent copy$default(UpgradeEvent upgradeEvent, String str, Status status, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = upgradeEvent.code;
        }
        if ((i2 & 2) != 0) {
            status = upgradeEvent.status;
        }
        return upgradeEvent.copy(str, status);
    }

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

    public final Status component2() {
        return this.status;
    }

    public final UpgradeEvent copy(String str, Status status) {
        k.e(str, "code");
        k.e(status, "status");
        return new UpgradeEvent(str, status);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof UpgradeEvent)) {
            return false;
        }
        UpgradeEvent upgradeEvent = (UpgradeEvent) obj;
        return k.a(this.code, upgradeEvent.code) && k.a(this.status, upgradeEvent.status);
    }

    public final String getCode() {
        return this.code;
    }

    public final Status getStatus() {
        return this.status;
    }

    public int hashCode() {
        return (this.code.hashCode() * 31) + this.status.hashCode();
    }

    public String toString() {
        return "UpgradeEvent(code=" + this.code + ", status=" + this.status + ')';
    }
}
