package r5;

import E1.B;
import android.os.Bundle;
import android.os.Parcelable;
import com.martsnew.domain.type.MediaType;
import com.martsnew.tv.R;
import d5.AbstractC0844a;
import java.io.Serializable;

/* JADX INFO: renamed from: r5.k, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1506k implements B {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final MediaType f16574c;

    public C1506k(String str, String str2, MediaType mediaType) {
        P6.g.e(str, "listId");
        P6.g.e(mediaType, "movieType");
        this.f16572a = str;
        this.f16573b = str2;
        this.f16574c = mediaType;
    }

    @Override // E1.B
    public final int a() {
        return R.id.goToMovieList;
    }

    @Override // E1.B
    public final Bundle b() {
        Bundle bundle = new Bundle();
        bundle.putString("listId", this.f16572a);
        bundle.putString("title", this.f16573b);
        boolean zIsAssignableFrom = Parcelable.class.isAssignableFrom(MediaType.class);
        Serializable serializable = this.f16574c;
        if (zIsAssignableFrom) {
            P6.g.c(serializable, "null cannot be cast to non-null type android.os.Parcelable");
            bundle.putParcelable("movieType", (Parcelable) serializable);
            return bundle;
        }
        if (Serializable.class.isAssignableFrom(MediaType.class)) {
            P6.g.c(serializable, "null cannot be cast to non-null type java.io.Serializable");
            bundle.putSerializable("movieType", serializable);
        }
        return bundle;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C1506k)) {
            return false;
        }
        C1506k c1506k = (C1506k) obj;
        return P6.g.a(this.f16572a, c1506k.f16572a) && P6.g.a(this.f16573b, c1506k.f16573b) && this.f16574c == c1506k.f16574c;
    }

    public final int hashCode() {
        return this.f16574c.hashCode() + AbstractC0844a.g(this.f16572a.hashCode() * 31, 31, this.f16573b);
    }

    public final String toString() {
        return "GoToMovieList(listId=" + this.f16572a + ", title=" + this.f16573b + ", movieType=" + this.f16574c + ")";
    }
}
