package com.martsnew.domain.model;

import B6.t;
import P6.g;
import android.os.Parcel;
import android.os.Parcelable;
import d5.AbstractC0844a;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import k5.l;

/* JADX INFO: loaded from: classes.dex */
public final class Season implements Parcelable {
    public static final Parcelable.Creator<Season> CREATOR = new l(1);

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final long f11079q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final String f11080r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final int f11081s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final String f11082t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final boolean f11083u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final List f11084v;

    public Season(long j8, String str, int i, String str2, boolean z8, List list) {
        g.e(str, "name");
        g.e(str2, "releaseDate");
        g.e(list, "episodes");
        this.f11079q = j8;
        this.f11080r = str;
        this.f11081s = i;
        this.f11082t = str2;
        this.f11083u = z8;
        this.f11084v = list;
    }

    public final String a() throws IOException {
        StringBuilder sb = new StringBuilder();
        String str = this.f11080r;
        int length = str.length();
        for (int i = 0; i < length; i++) {
            char cCharAt = str.charAt(i);
            if (Character.isDigit(cCharAt)) {
                sb.append(cCharAt);
            }
        }
        return sb.toString();
    }

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

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Season)) {
            return false;
        }
        Season season = (Season) obj;
        return this.f11079q == season.f11079q && g.a(this.f11080r, season.f11080r) && this.f11081s == season.f11081s && g.a(this.f11082t, season.f11082t) && this.f11083u == season.f11083u && g.a(this.f11084v, season.f11084v);
    }

    public final int hashCode() {
        long j8 = this.f11079q;
        return this.f11084v.hashCode() + ((AbstractC0844a.g((AbstractC0844a.g(((int) (j8 ^ (j8 >>> 32))) * 31, 31, this.f11080r) + this.f11081s) * 31, 31, this.f11082t) + (this.f11083u ? 1231 : 1237)) * 31);
    }

    public final String toString() {
        return "Season(id=" + this.f11079q + ", name=" + this.f11080r + ", numberEpisode=" + this.f11081s + ", releaseDate=" + this.f11082t + ", lastWatch=" + this.f11083u + ", episodes=" + this.f11084v + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        g.e(parcel, "dest");
        parcel.writeLong(this.f11079q);
        parcel.writeString(this.f11080r);
        parcel.writeInt(this.f11081s);
        parcel.writeString(this.f11082t);
        parcel.writeInt(this.f11083u ? 1 : 0);
        List list = this.f11084v;
        parcel.writeInt(list.size());
        Iterator it = list.iterator();
        while (it.hasNext()) {
            ((Episode) it.next()).writeToParcel(parcel, i);
        }
    }

    public Season() {
        this(0L, "", 0, "", false, t.f1032q);
    }
}
