package com.strmr.ps.data.local.entity;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.extractor.text.ttml.TtmlNode;
import defpackage.cr4;
import defpackage.fi7;
import defpackage.hn2;
import defpackage.ih7;
import defpackage.jn2;
import defpackage.kp6;
import defpackage.pq6;
import defpackage.uz1;
import defpackage.vm2;
import defpackage.vw2;
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\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b*\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0087\b\u0018\u0000 92\u00020\u0001:\u000289By\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u0007\u0012\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\u0007\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0007\u0012\b\b\u0002\u0010\r\u001a\u00020\u0007\u0012\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\t\u0012\b\b\u0002\u0010\u000f\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\u0003¢\u0006\u0004\b\u0011\u0010\u0012J\t\u0010&\u001a\u00020\u0003HÆ\u0003J\t\u0010'\u001a\u00020\u0005HÆ\u0003J\t\u0010(\u001a\u00020\u0007HÆ\u0003J\t\u0010)\u001a\u00020\tHÆ\u0003J\u0010\u0010*\u001a\u0004\u0018\u00010\u0007HÆ\u0003¢\u0006\u0002\u0010\u001cJ\u0010\u0010+\u001a\u0004\u0018\u00010\u0007HÆ\u0003¢\u0006\u0002\u0010\u001cJ\u0010\u0010,\u001a\u0004\u0018\u00010\u0007HÆ\u0003¢\u0006\u0002\u0010\u001cJ\t\u0010-\u001a\u00020\u0007HÆ\u0003J\u000b\u0010.\u001a\u0004\u0018\u00010\tHÆ\u0003J\t\u0010/\u001a\u00020\u0003HÆ\u0003J\u0010\u00100\u001a\u0004\u0018\u00010\u0003HÆ\u0003¢\u0006\u0002\u0010$J\u0086\u0001\u00101\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\b\b\u0002\u0010\b\u001a\u00020\t2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\u00072\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u00072\b\b\u0002\u0010\r\u001a\u00020\u00072\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\t2\b\b\u0002\u0010\u000f\u001a\u00020\u00032\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\u0003HÆ\u0001¢\u0006\u0002\u00102J\u0013\u00103\u001a\u0002042\b\u00105\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00106\u001a\u00020\u0007HÖ\u0001J\t\u00107\u001a\u00020\tHÖ\u0001R\u0016\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0015\u0010\n\u001a\u0004\u0018\u00010\u0007¢\u0006\n\n\u0002\u0010\u001d\u001a\u0004\b\u001b\u0010\u001cR\u0015\u0010\u000b\u001a\u0004\u0018\u00010\u0007¢\u0006\n\n\u0002\u0010\u001d\u001a\u0004\b\u001e\u0010\u001cR\u0015\u0010\f\u001a\u0004\u0018\u00010\u0007¢\u0006\n\n\u0002\u0010\u001d\u001a\u0004\b\u001f\u0010\u001cR\u0011\u0010\r\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b \u0010\u0018R\u0013\u0010\u000e\u001a\u0004\u0018\u00010\t¢\u0006\b\n\u0000\u001a\u0004\b!\u0010\u001aR\u0011\u0010\u000f\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\"\u0010\u0014R\u0015\u0010\u0010\u001a\u0004\u0018\u00010\u0003¢\u0006\n\n\u0002\u0010%\u001a\u0004\b#\u0010$¨\u0006:"}, d2 = {"Lcom/strmr/ps/data/local/entity/PendingTraktAction;", "", TtmlNode.ATTR_ID, "", "actionType", "Lcom/strmr/ps/data/local/entity/PendingTraktAction$ActionType;", "tmdbId", "", "contentType", "", "season", PlaybackProgress.TYPE_EPISODE, "rating", "retryCount", "lastError", "createdAt", "lastAttemptAt", "<init>", "(JLcom/strmr/ps/data/local/entity/PendingTraktAction$ActionType;ILjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/String;JLjava/lang/Long;)V", "getId", "()J", "getActionType", "()Lcom/strmr/ps/data/local/entity/PendingTraktAction$ActionType;", "getTmdbId", "()I", "getContentType", "()Ljava/lang/String;", "getSeason", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getEpisode", "getRating", "getRetryCount", "getLastError", "getCreatedAt", "getLastAttemptAt", "()Ljava/lang/Long;", "Ljava/lang/Long;", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "component10", "component11", "copy", "(JLcom/strmr/ps/data/local/entity/PendingTraktAction$ActionType;ILjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/String;JLjava/lang/Long;)Lcom/strmr/ps/data/local/entity/PendingTraktAction;", "equals", "", "other", "hashCode", "toString", "ActionType", "Companion", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vm2
public final /* data */ class PendingTraktAction {
    public static final int MAX_RETRIES = 3;

    @kp6
    private final ActionType actionType;

    @kp6
    private final String contentType;
    private final long createdAt;

    @pq6
    private final Integer episode;

    @ih7
    private final long id;

    @pq6
    private final Long lastAttemptAt;

    @pq6
    private final String lastError;

    @pq6
    private final Integer rating;
    private final int retryCount;

    @pq6
    private final Integer season;
    private final int tmdbId;

    /* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
    /* JADX WARN: Unknown enum class pattern. Please report as an issue! */
    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0010\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000fj\u0002\b\u0010¨\u0006\u0011"}, d2 = {"Lcom/strmr/ps/data/local/entity/PendingTraktAction$ActionType;", "", "<init>", "(Ljava/lang/String;I)V", "MARK_MOVIE_WATCHED", "MARK_MOVIE_UNWATCHED", "MARK_SHOW_WATCHED", "MARK_SHOW_UNWATCHED", "MARK_SEASON_WATCHED", "MARK_EPISODE_WATCHED", "MARK_EPISODE_UNWATCHED", "ADD_TO_COLLECTION", "REMOVE_FROM_COLLECTION", "ADD_TO_WATCHLIST", "REMOVE_FROM_WATCHLIST", "ADD_RATING", "REMOVE_RATING", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class ActionType {
        private static final /* synthetic */ hn2 $ENTRIES;
        private static final /* synthetic */ ActionType[] $VALUES;
        public static final ActionType MARK_MOVIE_WATCHED = new ActionType("MARK_MOVIE_WATCHED", 0);
        public static final ActionType MARK_MOVIE_UNWATCHED = new ActionType("MARK_MOVIE_UNWATCHED", 1);
        public static final ActionType MARK_SHOW_WATCHED = new ActionType("MARK_SHOW_WATCHED", 2);
        public static final ActionType MARK_SHOW_UNWATCHED = new ActionType("MARK_SHOW_UNWATCHED", 3);
        public static final ActionType MARK_SEASON_WATCHED = new ActionType("MARK_SEASON_WATCHED", 4);
        public static final ActionType MARK_EPISODE_WATCHED = new ActionType("MARK_EPISODE_WATCHED", 5);
        public static final ActionType MARK_EPISODE_UNWATCHED = new ActionType("MARK_EPISODE_UNWATCHED", 6);
        public static final ActionType ADD_TO_COLLECTION = new ActionType("ADD_TO_COLLECTION", 7);
        public static final ActionType REMOVE_FROM_COLLECTION = new ActionType("REMOVE_FROM_COLLECTION", 8);
        public static final ActionType ADD_TO_WATCHLIST = new ActionType("ADD_TO_WATCHLIST", 9);
        public static final ActionType REMOVE_FROM_WATCHLIST = new ActionType("REMOVE_FROM_WATCHLIST", 10);
        public static final ActionType ADD_RATING = new ActionType("ADD_RATING", 11);
        public static final ActionType REMOVE_RATING = new ActionType("REMOVE_RATING", 12);

        private static final /* synthetic */ ActionType[] $values() {
            return new ActionType[]{MARK_MOVIE_WATCHED, MARK_MOVIE_UNWATCHED, MARK_SHOW_WATCHED, MARK_SHOW_UNWATCHED, MARK_SEASON_WATCHED, MARK_EPISODE_WATCHED, MARK_EPISODE_UNWATCHED, ADD_TO_COLLECTION, REMOVE_FROM_COLLECTION, ADD_TO_WATCHLIST, REMOVE_FROM_WATCHLIST, ADD_RATING, REMOVE_RATING};
        }

        static {
            ActionType[] actionTypeArr$values = $values();
            $VALUES = actionTypeArr$values;
            $ENTRIES = jn2.a(actionTypeArr$values);
        }

        private ActionType(String str, int i) {
        }

        @kp6
        public static hn2<ActionType> getEntries() {
            return $ENTRIES;
        }

        public static ActionType valueOf(String str) {
            return (ActionType) Enum.valueOf(ActionType.class, str);
        }

        public static ActionType[] values() {
            return (ActionType[]) $VALUES.clone();
        }
    }

    public PendingTraktAction(long j, @kp6 ActionType actionType, int i, @kp6 String str, @pq6 Integer num, @pq6 Integer num2, @pq6 Integer num3, int i2, @pq6 String str2, long j2, @pq6 Long l) {
        cr4.g(actionType, "actionType");
        cr4.g(str, "contentType");
        this.id = j;
        this.actionType = actionType;
        this.tmdbId = i;
        this.contentType = str;
        this.season = num;
        this.episode = num2;
        this.rating = num3;
        this.retryCount = i2;
        this.lastError = str2;
        this.createdAt = j2;
        this.lastAttemptAt = l;
    }

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

    /* JADX INFO: renamed from: component10, reason: from getter */
    public final long getCreatedAt() {
        return this.createdAt;
    }

    @pq6
    /* JADX INFO: renamed from: component11, reason: from getter */
    public final Long getLastAttemptAt() {
        return this.lastAttemptAt;
    }

    @kp6
    /* JADX INFO: renamed from: component2, reason: from getter */
    public final ActionType getActionType() {
        return this.actionType;
    }

    /* JADX INFO: renamed from: component3, reason: from getter */
    public final int getTmdbId() {
        return this.tmdbId;
    }

    @kp6
    /* JADX INFO: renamed from: component4, reason: from getter */
    public final String getContentType() {
        return this.contentType;
    }

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

    @pq6
    /* JADX INFO: renamed from: component6, reason: from getter */
    public final Integer getEpisode() {
        return this.episode;
    }

    @pq6
    /* JADX INFO: renamed from: component7, reason: from getter */
    public final Integer getRating() {
        return this.rating;
    }

    /* JADX INFO: renamed from: component8, reason: from getter */
    public final int getRetryCount() {
        return this.retryCount;
    }

    @pq6
    /* JADX INFO: renamed from: component9, reason: from getter */
    public final String getLastError() {
        return this.lastError;
    }

    @kp6
    public final PendingTraktAction copy(long id, @kp6 ActionType actionType, int tmdbId, @kp6 String contentType, @pq6 Integer season, @pq6 Integer episode, @pq6 Integer rating, int retryCount, @pq6 String lastError, long createdAt, @pq6 Long lastAttemptAt) {
        cr4.g(actionType, "actionType");
        cr4.g(contentType, "contentType");
        return new PendingTraktAction(id, actionType, tmdbId, contentType, season, episode, rating, retryCount, lastError, createdAt, lastAttemptAt);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof PendingTraktAction)) {
            return false;
        }
        PendingTraktAction pendingTraktAction = (PendingTraktAction) other;
        return this.id == pendingTraktAction.id && this.actionType == pendingTraktAction.actionType && this.tmdbId == pendingTraktAction.tmdbId && cr4.b(this.contentType, pendingTraktAction.contentType) && cr4.b(this.season, pendingTraktAction.season) && cr4.b(this.episode, pendingTraktAction.episode) && cr4.b(this.rating, pendingTraktAction.rating) && this.retryCount == pendingTraktAction.retryCount && cr4.b(this.lastError, pendingTraktAction.lastError) && this.createdAt == pendingTraktAction.createdAt && cr4.b(this.lastAttemptAt, pendingTraktAction.lastAttemptAt);
    }

    @kp6
    public final ActionType getActionType() {
        return this.actionType;
    }

    @kp6
    public final String getContentType() {
        return this.contentType;
    }

    public final long getCreatedAt() {
        return this.createdAt;
    }

    @pq6
    public final Integer getEpisode() {
        return this.episode;
    }

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

    @pq6
    public final Long getLastAttemptAt() {
        return this.lastAttemptAt;
    }

    @pq6
    public final String getLastError() {
        return this.lastError;
    }

    @pq6
    public final Integer getRating() {
        return this.rating;
    }

    public final int getRetryCount() {
        return this.retryCount;
    }

    @pq6
    public final Integer getSeason() {
        return this.season;
    }

    public final int getTmdbId() {
        return this.tmdbId;
    }

    public int hashCode() {
        int iB = vw2.b(fi7.a(this.tmdbId, (this.actionType.hashCode() + (Long.hashCode(this.id) * 31)) * 31, 31), 31, this.contentType);
        Integer num = this.season;
        int iHashCode = (iB + (num == null ? 0 : num.hashCode())) * 31;
        Integer num2 = this.episode;
        int iHashCode2 = (iHashCode + (num2 == null ? 0 : num2.hashCode())) * 31;
        Integer num3 = this.rating;
        int iA = fi7.a(this.retryCount, (iHashCode2 + (num3 == null ? 0 : num3.hashCode())) * 31, 31);
        String str = this.lastError;
        int iB2 = fi7.b((iA + (str == null ? 0 : str.hashCode())) * 31, 31, this.createdAt);
        Long l = this.lastAttemptAt;
        return iB2 + (l != null ? l.hashCode() : 0);
    }

    @kp6
    public String toString() {
        return "PendingTraktAction(id=" + this.id + ", actionType=" + this.actionType + ", tmdbId=" + this.tmdbId + ", contentType=" + this.contentType + ", season=" + this.season + ", episode=" + this.episode + ", rating=" + this.rating + ", retryCount=" + this.retryCount + ", lastError=" + this.lastError + ", createdAt=" + this.createdAt + ", lastAttemptAt=" + this.lastAttemptAt + ")";
    }

    public /* synthetic */ PendingTraktAction(long j, ActionType actionType, int i, String str, Integer num, Integer num2, Integer num3, int i2, String str2, long j2, Long l, int i3, uz1 uz1Var) {
        this((i3 & 1) != 0 ? 0L : j, actionType, i, str, (i3 & 16) != 0 ? null : num, (i3 & 32) != 0 ? null : num2, (i3 & 64) != 0 ? null : num3, (i3 & 128) != 0 ? 0 : i2, (i3 & 256) != 0 ? null : str2, (i3 & 512) != 0 ? System.currentTimeMillis() : j2, (i3 & 1024) != 0 ? null : l);
    }
}
