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

import androidx.media3.container.NalUnitUtil;
import com.google.android.gms.common.Scopes;
import defpackage.cr4;
import defpackage.fi7;
import defpackage.ih7;
import defpackage.kp6;
import defpackage.n41;
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\u000e\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b)\b\u0087\b\u0018\u00002\u00020\u0001Bm\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\b\u0010\t\u001a\u0004\u0018\u00010\b\u0012\b\u0010\n\u001a\u0004\u0018\u00010\b\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\f\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u000e\u0012\u0006\u0010\u000f\u001a\u00020\f\u0012\u0006\u0010\u0010\u001a\u00020\f¢\u0006\u0004\b\u0011\u0010\u0012J\u0006\u0010$\u001a\u00020\u0003J\r\u0010%\u001a\u0004\u0018\u00010\u000e¢\u0006\u0002\u0010\u001fJ\t\u0010&\u001a\u00020\u0003HÆ\u0003J\t\u0010'\u001a\u00020\u0003HÆ\u0003J\u000b\u0010(\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010)\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010*\u001a\u00020\bHÆ\u0003J\u0010\u0010+\u001a\u0004\u0018\u00010\bHÆ\u0003¢\u0006\u0002\u0010\u0019J\u0010\u0010,\u001a\u0004\u0018\u00010\bHÆ\u0003¢\u0006\u0002\u0010\u0019J\u0010\u0010-\u001a\u0004\u0018\u00010\fHÆ\u0003¢\u0006\u0002\u0010\u001cJ\u0010\u0010.\u001a\u0004\u0018\u00010\u000eHÆ\u0003¢\u0006\u0002\u0010\u001fJ\t\u0010/\u001a\u00020\fHÆ\u0003J\t\u00100\u001a\u00020\fHÆ\u0003J\u0088\u0001\u00101\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\b2\n\b\u0002\u0010\u000b\u001a\u0004\u0018\u00010\f2\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u000e2\b\b\u0002\u0010\u000f\u001a\u00020\f2\b\b\u0002\u0010\u0010\u001a\u00020\fHÆ\u0001¢\u0006\u0002\u00102J\u0013\u00103\u001a\u00020\b2\b\u00104\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00105\u001a\u00020\u000eHÖ\u0001J\t\u00106\u001a\u00020\u0003HÖ\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\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0014R\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0014R\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0014R\u0011\u0010\u0007\u001a\u00020\b¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\u0018R\u0015\u0010\t\u001a\u0004\u0018\u00010\b¢\u0006\n\n\u0002\u0010\u001a\u001a\u0004\b\t\u0010\u0019R\u0015\u0010\n\u001a\u0004\u0018\u00010\b¢\u0006\n\n\u0002\u0010\u001a\u001a\u0004\b\n\u0010\u0019R\u0015\u0010\u000b\u001a\u0004\u0018\u00010\f¢\u0006\n\n\u0002\u0010\u001d\u001a\u0004\b\u001b\u0010\u001cR\u0015\u0010\r\u001a\u0004\u0018\u00010\u000e¢\u0006\n\n\u0002\u0010 \u001a\u0004\b\u001e\u0010\u001fR\u0011\u0010\u000f\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b!\u0010\"R\u0011\u0010\u0010\u001a\u00020\f¢\u0006\b\n\u0000\u001a\u0004\b#\u0010\"¨\u00067"}, d2 = {"Lcom/strmr/ps/data/local/entity/AllDebridAccount;", "", "providerId", "", "apiKey", "username", Scopes.EMAIL, "isPremium", "", "isSubscribed", "isTrial", "premiumUntil", "", "fidelityPoints", "", "lastVerifiedAt", "createdAt", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Integer;JJ)V", "getProviderId", "()Ljava/lang/String;", "getApiKey", "getUsername", "getEmail", "()Z", "()Ljava/lang/Boolean;", "Ljava/lang/Boolean;", "getPremiumUntil", "()Ljava/lang/Long;", "Ljava/lang/Long;", "getFidelityPoints", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getLastVerifiedAt", "()J", "getCreatedAt", "getAuthHeader", "getDaysRemaining", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "component10", "component11", "copy", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Integer;JJ)Lcom/strmr/ps/data/local/entity/AllDebridAccount;", "equals", "other", "hashCode", "toString", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vm2
public final /* data */ class AllDebridAccount {

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

    @pq6
    private final String email;

    @pq6
    private final Integer fidelityPoints;
    private final boolean isPremium;

    @pq6
    private final Boolean isSubscribed;

    @pq6
    private final Boolean isTrial;
    private final long lastVerifiedAt;

    @pq6
    private final Long premiumUntil;

    @ih7
    @kp6
    private final String providerId;

    @pq6
    private final String username;

    public AllDebridAccount(@kp6 String str, @kp6 String str2, @pq6 String str3, @pq6 String str4, boolean z, @pq6 Boolean bool, @pq6 Boolean bool2, @pq6 Long l, @pq6 Integer num, long j, long j2) {
        cr4.g(str, "providerId");
        cr4.g(str2, "apiKey");
        this.providerId = str;
        this.apiKey = str2;
        this.username = str3;
        this.email = str4;
        this.isPremium = z;
        this.isSubscribed = bool;
        this.isTrial = bool2;
        this.premiumUntil = l;
        this.fidelityPoints = num;
        this.lastVerifiedAt = j;
        this.createdAt = j2;
    }

    @kp6
    /* JADX INFO: renamed from: component1, reason: from getter */
    public final String getProviderId() {
        return this.providerId;
    }

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

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

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

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

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

    /* JADX INFO: renamed from: component5, reason: from getter */
    public final boolean getIsPremium() {
        return this.isPremium;
    }

    @pq6
    /* JADX INFO: renamed from: component6, reason: from getter */
    public final Boolean getIsSubscribed() {
        return this.isSubscribed;
    }

    @pq6
    /* JADX INFO: renamed from: component7, reason: from getter */
    public final Boolean getIsTrial() {
        return this.isTrial;
    }

    @pq6
    /* JADX INFO: renamed from: component8, reason: from getter */
    public final Long getPremiumUntil() {
        return this.premiumUntil;
    }

    @pq6
    /* JADX INFO: renamed from: component9, reason: from getter */
    public final Integer getFidelityPoints() {
        return this.fidelityPoints;
    }

    @kp6
    public final AllDebridAccount copy(@kp6 String providerId, @kp6 String apiKey, @pq6 String username, @pq6 String email, boolean isPremium, @pq6 Boolean isSubscribed, @pq6 Boolean isTrial, @pq6 Long premiumUntil, @pq6 Integer fidelityPoints, long lastVerifiedAt, long createdAt) {
        cr4.g(providerId, "providerId");
        cr4.g(apiKey, "apiKey");
        return new AllDebridAccount(providerId, apiKey, username, email, isPremium, isSubscribed, isTrial, premiumUntil, fidelityPoints, lastVerifiedAt, createdAt);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof AllDebridAccount)) {
            return false;
        }
        AllDebridAccount allDebridAccount = (AllDebridAccount) other;
        return cr4.b(this.providerId, allDebridAccount.providerId) && cr4.b(this.apiKey, allDebridAccount.apiKey) && cr4.b(this.username, allDebridAccount.username) && cr4.b(this.email, allDebridAccount.email) && this.isPremium == allDebridAccount.isPremium && cr4.b(this.isSubscribed, allDebridAccount.isSubscribed) && cr4.b(this.isTrial, allDebridAccount.isTrial) && cr4.b(this.premiumUntil, allDebridAccount.premiumUntil) && cr4.b(this.fidelityPoints, allDebridAccount.fidelityPoints) && this.lastVerifiedAt == allDebridAccount.lastVerifiedAt && this.createdAt == allDebridAccount.createdAt;
    }

    @kp6
    public final String getApiKey() {
        return this.apiKey;
    }

    @kp6
    public final String getAuthHeader() {
        return n41.n("Bearer ", this.apiKey);
    }

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

    @pq6
    public final Integer getDaysRemaining() {
        Long l = this.premiumUntil;
        if (l == null) {
            return null;
        }
        long jLongValue = l.longValue();
        long jCurrentTimeMillis = System.currentTimeMillis() / ((long) 1000);
        if (jLongValue <= jCurrentTimeMillis) {
            return 0;
        }
        return Integer.valueOf((int) ((jLongValue - jCurrentTimeMillis) / ((long) 86400)));
    }

    @pq6
    public final String getEmail() {
        return this.email;
    }

    @pq6
    public final Integer getFidelityPoints() {
        return this.fidelityPoints;
    }

    public final long getLastVerifiedAt() {
        return this.lastVerifiedAt;
    }

    @pq6
    public final Long getPremiumUntil() {
        return this.premiumUntil;
    }

    @kp6
    public final String getProviderId() {
        return this.providerId;
    }

    @pq6
    public final String getUsername() {
        return this.username;
    }

    public int hashCode() {
        int iB = vw2.b(this.providerId.hashCode() * 31, 31, this.apiKey);
        String str = this.username;
        int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.email;
        int iC = fi7.c((iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31, 31, this.isPremium);
        Boolean bool = this.isSubscribed;
        int iHashCode2 = (iC + (bool == null ? 0 : bool.hashCode())) * 31;
        Boolean bool2 = this.isTrial;
        int iHashCode3 = (iHashCode2 + (bool2 == null ? 0 : bool2.hashCode())) * 31;
        Long l = this.premiumUntil;
        int iHashCode4 = (iHashCode3 + (l == null ? 0 : l.hashCode())) * 31;
        Integer num = this.fidelityPoints;
        return Long.hashCode(this.createdAt) + fi7.b((iHashCode4 + (num != null ? num.hashCode() : 0)) * 31, 31, this.lastVerifiedAt);
    }

    public final boolean isPremium() {
        return this.isPremium;
    }

    @pq6
    public final Boolean isSubscribed() {
        return this.isSubscribed;
    }

    @pq6
    public final Boolean isTrial() {
        return this.isTrial;
    }

    @kp6
    public String toString() {
        String str = this.providerId;
        String str2 = this.apiKey;
        String str3 = this.username;
        String str4 = this.email;
        boolean z = this.isPremium;
        Boolean bool = this.isSubscribed;
        Boolean bool2 = this.isTrial;
        Long l = this.premiumUntil;
        Integer num = this.fidelityPoints;
        long j = this.lastVerifiedAt;
        long j2 = this.createdAt;
        StringBuilder sbM = fi7.m("AllDebridAccount(providerId=", str, ", apiKey=", str2, ", username=");
        vw2.aa(sbM, str3, ", email=", str4, ", isPremium=");
        sbM.append(z);
        sbM.append(", isSubscribed=");
        sbM.append(bool);
        sbM.append(", isTrial=");
        sbM.append(bool2);
        sbM.append(", premiumUntil=");
        sbM.append(l);
        sbM.append(", fidelityPoints=");
        sbM.append(num);
        sbM.append(", lastVerifiedAt=");
        sbM.append(j);
        sbM.append(", createdAt=");
        sbM.append(j2);
        sbM.append(")");
        return sbM.toString();
    }

    public /* synthetic */ AllDebridAccount(String str, String str2, String str3, String str4, boolean z, Boolean bool, Boolean bool2, Long l, Integer num, long j, long j2, int i, uz1 uz1Var) {
        this((i & 1) != 0 ? "alldebrid" : str, str2, str3, str4, z, bool, bool2, l, num, j, j2);
    }
}
