package com.vinfast.companion.core.model;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlinx.parcelize.Parcelize
@kotlin.Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B/\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\u0007\u0010\bJ\r\u0010\n\u001a\u00020\t¢\u0006\u0004\b\n\u0010\u000bJ\u001d\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\t¢\u0006\u0004\b\u0010\u0010\u0011J\u0010\u0010\u0013\u001a\u00020\u0012HÖ\u0001¢\u0006\u0004\b\u0013\u0010\u0014J\u0010\u0010\u0015\u001a\u00020\tHÖ\u0001¢\u0006\u0004\b\u0015\u0010\u000bJ\u001a\u0010\u0018\u001a\u00020\u00022\b\u0010\u0017\u001a\u0004\u0018\u00010\u0016HÖ\u0003¢\u0006\u0004\b\u0018\u0010\u0019R\u0019\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001a\u0010\u001b\u001a\u0004\b\u001c\u0010\u001dR\u0019\u0010\u0004\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001e\u0010\u001b\u001a\u0004\b\u001f\u0010\u001dR\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b \u0010\u001b\u001a\u0004\b\u001e\u0010\u001dR\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001f\u0010\u001b\u001a\u0004\b \u0010\u001d¨\u0006!"}, d2 = {"Lcom/vinfast/companion/core/model/VehicleDataConsent;", "Landroid/os/Parcelable;", "", "consentLocationDataSharingStatus", "consentGeneralDataSharingStatus", "consentBatteryCare", "consentDrivingScore", "<init>", "(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)V", "", "describeContents", "()I", "Landroid/os/Parcel;", "dest", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "", "toString", "()Ljava/lang/String;", "hashCode", "", "other", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/lang/Boolean;", "getConsentLocationDataSharingStatus", "()Ljava/lang/Boolean;", "b", "d", "c", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class VehicleDataConsent implements android.os.Parcelable {

    @org.jetbrains.annotations.NotNull
    public static final android.os.Parcelable.Creator<com.vinfast.companion.core.model.VehicleDataConsent> CREATOR = new com.vinfast.companion.core.model.VehicleDataConsent.Creator();

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean consentLocationDataSharingStatus;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean consentGeneralDataSharingStatus;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean consentBatteryCare;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata and from toString */
    private final java.lang.Boolean consentDrivingScore;

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(k = 3, mv = {2, 2, 0}, xi = 48)
    public static final class Creator implements android.os.Parcelable.Creator<com.vinfast.companion.core.model.VehicleDataConsent> {
        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.core.model.VehicleDataConsent createFromParcel(android.os.Parcel parcel) {
            java.lang.Boolean boolValueOf;
            java.lang.Boolean boolValueOf2;
            java.lang.Boolean boolValueOf3;
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            java.lang.Boolean boolValueOf4 = null;
            if (parcel.readInt() == 0) {
                boolValueOf = null;
            } else {
                boolValueOf = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            if (parcel.readInt() == 0) {
                boolValueOf2 = null;
            } else {
                boolValueOf2 = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            if (parcel.readInt() == 0) {
                boolValueOf3 = null;
            } else {
                boolValueOf3 = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            if (parcel.readInt() != 0) {
                boolValueOf4 = java.lang.Boolean.valueOf(parcel.readInt() != 0);
            }
            return new com.vinfast.companion.core.model.VehicleDataConsent(boolValueOf, boolValueOf2, boolValueOf3, boolValueOf4);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.core.model.VehicleDataConsent[] newArray(int i) {
            return new com.vinfast.companion.core.model.VehicleDataConsent[i];
        }
    }

    public VehicleDataConsent(java.lang.Boolean bool, java.lang.Boolean bool2, java.lang.Boolean bool3, java.lang.Boolean bool4) {
        this.consentLocationDataSharingStatus = bool;
        this.consentGeneralDataSharingStatus = bool2;
        this.consentBatteryCare = bool3;
        this.consentDrivingScore = bool4;
    }

    /* JADX INFO: renamed from: b, reason: from getter */
    public final java.lang.Boolean getConsentBatteryCare() {
        return this.consentBatteryCare;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final java.lang.Boolean getConsentDrivingScore() {
        return this.consentDrivingScore;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final java.lang.Boolean getConsentGeneralDataSharingStatus() {
        return this.consentGeneralDataSharingStatus;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof com.vinfast.companion.core.model.VehicleDataConsent)) {
            return false;
        }
        com.vinfast.companion.core.model.VehicleDataConsent vehicleDataConsent = (com.vinfast.companion.core.model.VehicleDataConsent) other;
        return kotlin.jvm.internal.Intrinsics.g(this.consentLocationDataSharingStatus, vehicleDataConsent.consentLocationDataSharingStatus) && kotlin.jvm.internal.Intrinsics.g(this.consentGeneralDataSharingStatus, vehicleDataConsent.consentGeneralDataSharingStatus) && kotlin.jvm.internal.Intrinsics.g(this.consentBatteryCare, vehicleDataConsent.consentBatteryCare) && kotlin.jvm.internal.Intrinsics.g(this.consentDrivingScore, vehicleDataConsent.consentDrivingScore);
    }

    public int hashCode() {
        java.lang.Boolean bool = this.consentLocationDataSharingStatus;
        int iHashCode = (bool == null ? 0 : bool.hashCode()) * 31;
        java.lang.Boolean bool2 = this.consentGeneralDataSharingStatus;
        int iHashCode2 = (iHashCode + (bool2 == null ? 0 : bool2.hashCode())) * 31;
        java.lang.Boolean bool3 = this.consentBatteryCare;
        int iHashCode3 = (iHashCode2 + (bool3 == null ? 0 : bool3.hashCode())) * 31;
        java.lang.Boolean bool4 = this.consentDrivingScore;
        return iHashCode3 + (bool4 != null ? bool4.hashCode() : 0);
    }

    public java.lang.String toString() {
        return "VehicleDataConsent(consentLocationDataSharingStatus=" + this.consentLocationDataSharingStatus + ", consentGeneralDataSharingStatus=" + this.consentGeneralDataSharingStatus + ", consentBatteryCare=" + this.consentBatteryCare + ", consentDrivingScore=" + this.consentDrivingScore + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(android.os.Parcel dest, int flags) {
        kotlin.jvm.internal.Intrinsics.l(dest, "dest");
        java.lang.Boolean bool = this.consentLocationDataSharingStatus;
        if (bool == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool.booleanValue() ? 1 : 0);
        }
        java.lang.Boolean bool2 = this.consentGeneralDataSharingStatus;
        if (bool2 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool2.booleanValue() ? 1 : 0);
        }
        java.lang.Boolean bool3 = this.consentBatteryCare;
        if (bool3 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool3.booleanValue() ? 1 : 0);
        }
        java.lang.Boolean bool4 = this.consentDrivingScore;
        if (bool4 == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(bool4.booleanValue() ? 1 : 0);
        }
    }
}
