package com.seewo.ota.udi.model;

import androidx.annotation.Keep;
import com.google.gson.annotations.SerializedName;
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 RebootBy {

    @SerializedName("appid")
    private final String appid;

    @SerializedName("enable")
    private final boolean enable;

    /* JADX WARN: Multi-variable type inference failed */
    public RebootBy() {
        this(null, false, 3, 0 == true ? 1 : 0);
    }

    public RebootBy(String str, boolean z) {
        k.e(str, "appid");
        this.appid = str;
        this.enable = z;
    }

    public static /* synthetic */ RebootBy copy$default(RebootBy rebootBy, String str, boolean z, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = rebootBy.appid;
        }
        if ((i2 & 2) != 0) {
            z = rebootBy.enable;
        }
        return rebootBy.copy(str, z);
    }

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

    public final boolean component2() {
        return this.enable;
    }

    public final RebootBy copy(String str, boolean z) {
        k.e(str, "appid");
        return new RebootBy(str, z);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof RebootBy)) {
            return false;
        }
        RebootBy rebootBy = (RebootBy) obj;
        return k.a(this.appid, rebootBy.appid) && this.enable == rebootBy.enable;
    }

    public final String getAppid() {
        return this.appid;
    }

    public final boolean getEnable() {
        return this.enable;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r1v1, types: [int] */
    /* JADX WARN: Type inference failed for: r1v2 */
    /* JADX WARN: Type inference failed for: r1v3 */
    public int hashCode() {
        int iHashCode = this.appid.hashCode() * 31;
        boolean z = this.enable;
        ?? r1 = z;
        if (z) {
            r1 = 1;
        }
        return iHashCode + r1;
    }

    public String toString() {
        return "RebootBy(appid=" + this.appid + ", enable=" + this.enable + ')';
    }

    public /* synthetic */ RebootBy(String str, boolean z, int i2, g gVar) {
        this((i2 & 1) != 0 ? "com.seewo.ota" : str, (i2 & 2) != 0 ? true : z);
    }
}
