package hb;

import com.google.android.gms.measurement.internal.u1;
import com.google.firebase.installations.local.PersistedInstallation$RegistrationStatus;
import xyz.stream.utils.t;

/* JADX INFO: loaded from: classes2.dex */
public final class e implements h {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final w8.i f26458b;

    public e(i iVar, w8.i iVar2) {
        this.f26457a = iVar;
        this.f26458b = iVar2;
    }

    @Override // hb.h
    public final boolean a(ib.e eVar) {
        ib.b bVar = (ib.b) eVar;
        if (bVar.f26600c != PersistedInstallation$RegistrationStatus.f24107d || this.f26457a.b(eVar)) {
            return false;
        }
        t tVar = new t(28);
        String authToken = eVar.getAuthToken();
        if (authToken == null) {
            throw new NullPointerException("Null token");
        }
        tVar.f36172b = authToken;
        tVar.f36173c = Long.valueOf(bVar.f26603f);
        tVar.f36174d = Long.valueOf(bVar.f26604g);
        String strJ = ((String) tVar.f36172b) == null ? " token" : "";
        if (((Long) tVar.f36173c) == null) {
            strJ = strJ.concat(" tokenExpirationTimestamp");
        }
        if (((Long) tVar.f36174d) == null) {
            strJ = u1.j(strJ, " tokenCreationTimestamp");
        }
        if (!strJ.isEmpty()) {
            throw new IllegalStateException("Missing required properties:".concat(strJ));
        }
        this.f26458b.setResult(new b((String) tVar.f36172b, ((Long) tVar.f36173c).longValue(), ((Long) tVar.f36174d).longValue()));
        return true;
    }

    @Override // hb.h
    public final boolean b(Exception exc) {
        this.f26458b.b(exc);
        return true;
    }
}
