package ca.canadapost.core.data.consumerhome.model;

import android.os.Parcel;
import android.os.Parcelable;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;

@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0087\b\u0018\u00002\u00020\u0001B7\u0012\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\"\u0010#J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u0002HÆ\u0003¢\u0006\u0004\b\u0003\u0010\u0004J\u000b\u0010\u0006\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u0007\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u0012\u0010\b\u001a\u0004\u0018\u00010\u0002HÆ\u0003¢\u0006\u0004\b\b\u0010\u0004J@\u0010\r\u001a\u00020\u00002\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0002HÆ\u0001¢\u0006\u0004\b\r\u0010\u000eJ\t\u0010\u000f\u001a\u00020\u0005HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0010HÖ\u0001J\u0013\u0010\u0014\u001a\u00020\u00022\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0015\u001a\u00020\u0010HÖ\u0001J\u0019\u0010\u001a\u001a\u00020\u00192\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0018\u001a\u00020\u0010HÖ\u0001R\u0019\u0010\t\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\t\u0010\u001b\u001a\u0004\b\u001c\u0010\u0004R\u0019\u0010\n\u001a\u0004\u0018\u00010\u00058\u0006¢\u0006\f\n\u0004\b\n\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u00058\u0006¢\u0006\f\n\u0004\b\u000b\u0010\u001d\u001a\u0004\b \u0010\u001fR\u0019\u0010\f\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\f\u0010\u001b\u001a\u0004\b!\u0010\u0004¨\u0006$"}, d2 = {"Lca/canadapost/core/data/consumerhome/model/ExpectedDeliveryWindow;", "Landroid/os/Parcelable;", "", "component1", "()Ljava/lang/Boolean;", "", "component2", "component3", "component4", "endOfDay", "endTime", "startTime", "timeRange", "copy", "(Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)Lca/canadapost/core/data/consumerhome/model/ExpectedDeliveryWindow;", "toString", "", "hashCode", "", "other", "equals", "describeContents", "Landroid/os/Parcel;", "parcel", "flags", "Lrm/n0;", "writeToParcel", "Ljava/lang/Boolean;", "getEndOfDay", "Ljava/lang/String;", "getEndTime", "()Ljava/lang/String;", "getStartTime", "getTimeRange", "<init>", "(Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes.dex */
public final /* data */ class ExpectedDeliveryWindow implements Parcelable {
    public static final Parcelable.Creator<ExpectedDeliveryWindow> CREATOR = new Creator();
    private final Boolean endOfDay;
    private final String endTime;
    private final String startTime;
    private final Boolean timeRange;

    @Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
    /* loaded from: classes.dex */
    public static final class Creator implements Parcelable.Creator<ExpectedDeliveryWindow> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public final ExpectedDeliveryWindow createFromParcel(Parcel parcel) {
            Boolean valueOf;
            t.g(parcel, "parcel");
            Boolean bool = null;
            if (parcel.readInt() == 0) {
                valueOf = null;
            } else {
                valueOf = Boolean.valueOf(parcel.readInt() != 0);
            }
            String readString = parcel.readString();
            String readString2 = parcel.readString();
            if (parcel.readInt() != 0) {
                bool = Boolean.valueOf(parcel.readInt() != 0);
            }
            return new ExpectedDeliveryWindow(valueOf, readString, readString2, bool);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public final ExpectedDeliveryWindow[] newArray(int i10) {
            return new ExpectedDeliveryWindow[i10];
        }
    }

    public ExpectedDeliveryWindow() {
        this(null, null, null, null, 15, null);
    }

    public static /* synthetic */ ExpectedDeliveryWindow copy$default(ExpectedDeliveryWindow expectedDeliveryWindow, Boolean bool, String str, String str2, Boolean bool2, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            bool = expectedDeliveryWindow.endOfDay;
        }
        if ((i10 & 2) != 0) {
            str = expectedDeliveryWindow.endTime;
        }
        if ((i10 & 4) != 0) {
            str2 = expectedDeliveryWindow.startTime;
        }
        if ((i10 & 8) != 0) {
            bool2 = expectedDeliveryWindow.timeRange;
        }
        return expectedDeliveryWindow.copy(bool, str, str2, bool2);
    }

    /* renamed from: component1, reason: from getter */
    public final Boolean getEndOfDay() {
        return this.endOfDay;
    }

    /* renamed from: component2, reason: from getter */
    public final String getEndTime() {
        return this.endTime;
    }

    /* renamed from: component3, reason: from getter */
    public final String getStartTime() {
        return this.startTime;
    }

    /* renamed from: component4, reason: from getter */
    public final Boolean getTimeRange() {
        return this.timeRange;
    }

    public final ExpectedDeliveryWindow copy(Boolean endOfDay, String endTime, String startTime, Boolean timeRange) {
        return new ExpectedDeliveryWindow(endOfDay, endTime, startTime, timeRange);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof ExpectedDeliveryWindow)) {
            return false;
        }
        ExpectedDeliveryWindow expectedDeliveryWindow = (ExpectedDeliveryWindow) other;
        return t.b(this.endOfDay, expectedDeliveryWindow.endOfDay) && t.b(this.endTime, expectedDeliveryWindow.endTime) && t.b(this.startTime, expectedDeliveryWindow.startTime) && t.b(this.timeRange, expectedDeliveryWindow.timeRange);
    }

    public final Boolean getEndOfDay() {
        return this.endOfDay;
    }

    public final String getEndTime() {
        return this.endTime;
    }

    public final String getStartTime() {
        return this.startTime;
    }

    public final Boolean getTimeRange() {
        return this.timeRange;
    }

    public int hashCode() {
        Boolean bool = this.endOfDay;
        int hashCode = (bool == null ? 0 : bool.hashCode()) * 31;
        String str = this.endTime;
        int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.startTime;
        int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
        Boolean bool2 = this.timeRange;
        return hashCode3 + (bool2 != null ? bool2.hashCode() : 0);
    }

    public String toString() {
        return "ExpectedDeliveryWindow(endOfDay=" + this.endOfDay + ", endTime=" + this.endTime + ", startTime=" + this.startTime + ", timeRange=" + this.timeRange + ")";
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel out, int i10) {
        t.g(out, "out");
        Boolean bool = this.endOfDay;
        if (bool == null) {
            out.writeInt(0);
        } else {
            out.writeInt(1);
            out.writeInt(bool.booleanValue() ? 1 : 0);
        }
        out.writeString(this.endTime);
        out.writeString(this.startTime);
        Boolean bool2 = this.timeRange;
        if (bool2 == null) {
            out.writeInt(0);
        } else {
            out.writeInt(1);
            out.writeInt(bool2.booleanValue() ? 1 : 0);
        }
    }

    public ExpectedDeliveryWindow(Boolean bool, String str, String str2, Boolean bool2) {
        this.endOfDay = bool;
        this.endTime = str;
        this.startTime = str2;
        this.timeRange = bool2;
    }

    public /* synthetic */ ExpectedDeliveryWindow(Boolean bool, String str, String str2, Boolean bool2, int i10, k kVar) {
        this((i10 & 1) != 0 ? null : bool, (i10 & 2) != 0 ? null : str, (i10 & 4) != 0 ? null : str2, (i10 & 8) != 0 ? null : bool2);
    }
}
