package com.seewo.aidl.model;

import android.os.Parcel;
import android.os.Parcelable;
import f.i;
import f.z.d.g;
import f.z.d.k;
import kotlinx.parcelize.Parcelize;

/* JADX INFO: compiled from: OTAScheduleTask.kt */
/* JADX INFO: loaded from: classes.dex */
@i
@Parcelize
public final class OTAScheduleTask implements Parcelable {
    public static final int NONE = -1;
    private final int hour;
    private final int minute;
    private final int month;
    private final int monthDay;
    private final RepeatType repeatType;

    /* JADX INFO: renamed from: switch, reason: not valid java name */
    private final boolean f0switch;
    private final int weekDay;
    private final int year;
    public static final Companion Companion = new Companion(null);
    public static final Parcelable.Creator<OTAScheduleTask> CREATOR = new Creator();

    /* JADX INFO: compiled from: OTAScheduleTask.kt */
    @i
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(g gVar) {
            this();
        }
    }

    /* JADX INFO: compiled from: OTAScheduleTask.kt */
    @i
    public static final class Creator implements Parcelable.Creator<OTAScheduleTask> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public final OTAScheduleTask createFromParcel(Parcel parcel) {
            k.e(parcel, "parcel");
            return new OTAScheduleTask(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), RepeatType.valueOf(parcel.readString()), parcel.readInt() != 0);
        }

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

    /* JADX INFO: compiled from: OTAScheduleTask.kt */
    @i
    public enum RepeatType {
        ONCE,
        EVERYDAY,
        EVERYWEEK,
        EVERYMONTH,
        EVERYYEAR
    }

    public OTAScheduleTask(int i2, int i3, int i4, int i5, int i6, int i7, RepeatType repeatType, boolean z) {
        k.e(repeatType, "repeatType");
        this.hour = i2;
        this.minute = i3;
        this.weekDay = i4;
        this.monthDay = i5;
        this.month = i6;
        this.year = i7;
        this.repeatType = repeatType;
        this.f0switch = z;
    }

    public final int component1() {
        return this.hour;
    }

    public final int component2() {
        return this.minute;
    }

    public final int component3() {
        return this.weekDay;
    }

    public final int component4() {
        return this.monthDay;
    }

    public final int component5() {
        return this.month;
    }

    public final int component6() {
        return this.year;
    }

    public final RepeatType component7() {
        return this.repeatType;
    }

    public final boolean component8() {
        return this.f0switch;
    }

    public final OTAScheduleTask copy(int i2, int i3, int i4, int i5, int i6, int i7, RepeatType repeatType, boolean z) {
        k.e(repeatType, "repeatType");
        return new OTAScheduleTask(i2, i3, i4, i5, i6, i7, repeatType, z);
    }

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

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof OTAScheduleTask)) {
            return false;
        }
        OTAScheduleTask oTAScheduleTask = (OTAScheduleTask) obj;
        return this.hour == oTAScheduleTask.hour && this.minute == oTAScheduleTask.minute && this.weekDay == oTAScheduleTask.weekDay && this.monthDay == oTAScheduleTask.monthDay && this.month == oTAScheduleTask.month && this.year == oTAScheduleTask.year && this.repeatType == oTAScheduleTask.repeatType && this.f0switch == oTAScheduleTask.f0switch;
    }

    public final int getHour() {
        return this.hour;
    }

    public final int getMinute() {
        return this.minute;
    }

    public final int getMonth() {
        return this.month;
    }

    public final int getMonthDay() {
        return this.monthDay;
    }

    public final RepeatType getRepeatType() {
        return this.repeatType;
    }

    public final boolean getSwitch() {
        return this.f0switch;
    }

    public final int getWeekDay() {
        return this.weekDay;
    }

    public final int getYear() {
        return this.year;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r1v13, types: [int] */
    /* JADX WARN: Type inference failed for: r1v14 */
    /* JADX WARN: Type inference failed for: r1v15 */
    public int hashCode() {
        int iHashCode = ((((((((((((Integer.hashCode(this.hour) * 31) + Integer.hashCode(this.minute)) * 31) + Integer.hashCode(this.weekDay)) * 31) + Integer.hashCode(this.monthDay)) * 31) + Integer.hashCode(this.month)) * 31) + Integer.hashCode(this.year)) * 31) + this.repeatType.hashCode()) * 31;
        boolean z = this.f0switch;
        ?? r1 = z;
        if (z) {
            r1 = 1;
        }
        return iHashCode + r1;
    }

    public String toString() {
        return "OTAScheduleTask(hour=" + this.hour + ", minute=" + this.minute + ", weekDay=" + this.weekDay + ", monthDay=" + this.monthDay + ", month=" + this.month + ", year=" + this.year + ", repeatType=" + this.repeatType + ", switch=" + this.f0switch + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        k.e(parcel, "out");
        parcel.writeInt(this.hour);
        parcel.writeInt(this.minute);
        parcel.writeInt(this.weekDay);
        parcel.writeInt(this.monthDay);
        parcel.writeInt(this.month);
        parcel.writeInt(this.year);
        parcel.writeString(this.repeatType.name());
        parcel.writeInt(this.f0switch ? 1 : 0);
    }
}
