package com.strmr.ps.data.model.tmdb;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.gson.annotations.SerializedName;
import defpackage.cr4;
import defpackage.fi7;
import defpackage.kp6;
import defpackage.pq6;
import defpackage.vw2;
import defpackage.vx8;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0017\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0086\b\u0018\u00002\u00020\u0001B5\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0003¢\u0006\u0004\b\t\u0010\nJ\b\u0010\u0014\u001a\u0004\u0018\u00010\u0005J\t\u0010\u0015\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0016\u001a\u00020\u0005HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u0010\u0018\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u0010\u0010\u0019\u001a\u0004\u0018\u00010\u0003HÆ\u0003¢\u0006\u0002\u0010\u0012JF\u0010\u001a\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0003HÆ\u0001¢\u0006\u0002\u0010\u001bJ\u0013\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u001f\u001a\u00020\u0003HÖ\u0001J\t\u0010 \u001a\u00020\u0005HÖ\u0001R\u0016\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0016\u0010\u0004\u001a\u00020\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0018\u0010\u0006\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u000eR\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00058\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u000eR\u001a\u0010\b\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\n\n\u0002\u0010\u0013\u001a\u0004\b\u0011\u0010\u0012¨\u0006!"}, d2 = {"Lcom/strmr/ps/data/model/tmdb/TMDBCast;", "", TtmlNode.ATTR_ID, "", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "character", "profilePath", "order", "<init>", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V", "getId", "()I", "getName", "()Ljava/lang/String;", "getCharacter", "getProfilePath", "getOrder", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getProfileUrl", "component1", "component2", "component3", "component4", "component5", "copy", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)Lcom/strmr/ps/data/model/tmdb/TMDBCast;", "equals", "", "other", "hashCode", "toString", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final /* data */ class TMDBCast {

    @SerializedName("character")
    @pq6
    private final String character;

    @SerializedName(TtmlNode.ATTR_ID)
    private final int id;

    @SerializedName(AppMeasurementSdk.ConditionalUserProperty.NAME)
    @kp6
    private final String name;

    @SerializedName("order")
    @pq6
    private final Integer order;

    @SerializedName("profile_path")
    @pq6
    private final String profilePath;

    public TMDBCast(int i, @kp6 String str, @pq6 String str2, @pq6 String str3, @pq6 Integer num) {
        cr4.g(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        this.id = i;
        this.name = str;
        this.character = str2;
        this.profilePath = str3;
        this.order = num;
    }

    public static /* synthetic */ TMDBCast copy$default(TMDBCast tMDBCast, int i, String str, String str2, String str3, Integer num, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = tMDBCast.id;
        }
        if ((i2 & 2) != 0) {
            str = tMDBCast.name;
        }
        if ((i2 & 4) != 0) {
            str2 = tMDBCast.character;
        }
        if ((i2 & 8) != 0) {
            str3 = tMDBCast.profilePath;
        }
        if ((i2 & 16) != 0) {
            num = tMDBCast.order;
        }
        Integer num2 = num;
        String str4 = str2;
        return tMDBCast.copy(i, str, str4, str3, num2);
    }

    /* JADX INFO: renamed from: component1, reason: from getter */
    public final int getId() {
        return this.id;
    }

    @kp6
    /* JADX INFO: renamed from: component2, reason: from getter */
    public final String getName() {
        return this.name;
    }

    @pq6
    /* JADX INFO: renamed from: component3, reason: from getter */
    public final String getCharacter() {
        return this.character;
    }

    @pq6
    /* JADX INFO: renamed from: component4, reason: from getter */
    public final String getProfilePath() {
        return this.profilePath;
    }

    @pq6
    /* JADX INFO: renamed from: component5, reason: from getter */
    public final Integer getOrder() {
        return this.order;
    }

    @kp6
    public final TMDBCast copy(int id, @kp6 String name, @pq6 String character, @pq6 String profilePath, @pq6 Integer order) {
        cr4.g(name, AppMeasurementSdk.ConditionalUserProperty.NAME);
        return new TMDBCast(id, name, character, profilePath, order);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof TMDBCast)) {
            return false;
        }
        TMDBCast tMDBCast = (TMDBCast) other;
        return this.id == tMDBCast.id && cr4.b(this.name, tMDBCast.name) && cr4.b(this.character, tMDBCast.character) && cr4.b(this.profilePath, tMDBCast.profilePath) && cr4.b(this.order, tMDBCast.order);
    }

    @pq6
    public final String getCharacter() {
        return this.character;
    }

    public final int getId() {
        return this.id;
    }

    @kp6
    public final String getName() {
        return this.name;
    }

    @pq6
    public final Integer getOrder() {
        return this.order;
    }

    @pq6
    public final String getProfilePath() {
        return this.profilePath;
    }

    @pq6
    public final String getProfileUrl() {
        String str = this.profilePath;
        if (str != null) {
            return "https://image.tmdb.org/t/p/w185".concat(str);
        }
        return null;
    }

    public int hashCode() {
        int iB = vw2.b(Integer.hashCode(this.id) * 31, 31, this.name);
        String str = this.character;
        int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.profilePath;
        int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        Integer num = this.order;
        return iHashCode2 + (num != null ? num.hashCode() : 0);
    }

    @kp6
    public String toString() {
        int i = this.id;
        String str = this.name;
        String str2 = this.character;
        String str3 = this.profilePath;
        Integer num = this.order;
        StringBuilder sbK = fi7.k("TMDBCast(id=", i, ", name=", str, ", character=");
        vw2.aa(sbK, str2, ", profilePath=", str3, ", order=");
        sbK.append(num);
        sbK.append(")");
        return sbK.toString();
    }
}
