package com.google.firebase.firestore;

import com.google.firebase.firestore.core.ViewSnapshot;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class e implements EventListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f13962a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ EventListener f13963b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f13964c;

    public /* synthetic */ e(Object obj, EventListener eventListener, int i6) {
        this.f13962a = i6;
        this.f13964c = obj;
        this.f13963b = eventListener;
    }

    @Override // com.google.firebase.firestore.EventListener
    public final void onEvent(Object obj, FirebaseFirestoreException firebaseFirestoreException) {
        ViewSnapshot viewSnapshot = (ViewSnapshot) obj;
        switch (this.f13962a) {
            case 0:
                ((DocumentReference) this.f13964c).lambda$addSnapshotListenerInternal$6(this.f13963b, viewSnapshot, firebaseFirestoreException);
                break;
            default:
                ((Query) this.f13964c).lambda$addSnapshotListenerInternal$3(this.f13963b, viewSnapshot, firebaseFirestoreException);
                break;
        }
    }
}
