package xyz.stream.api.database;

import androidx.room.RoomDatabase;
import java.util.List;
import xyz.stream.utils.f0;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ xyz.stream.api.e f35815c;

    public /* synthetic */ g(l lVar, xyz.stream.api.e eVar, int i10) {
        this.f35813a = i10;
        this.f35814b = lVar;
        this.f35815c = eVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f35813a;
        xyz.stream.api.e eVar = this.f35815c;
        l lVar = this.f35814b;
        switch (i10) {
            case 0:
                List listF = ((com.bumptech.glide.load.engine.p) lVar.f35829b).f(f0.o().q("flutter.selectRoles", ""));
                if (eVar != null) {
                    eVar.onSuccess(listF);
                }
                break;
            default:
                List list = (List) androidx.room.util.b.b((RoomDatabase) ((com.bumptech.glide.load.engine.p) lVar.f35829b).f5756a, true, false, new h3.b(f0.o().q("flutter.selectRoles", ""), 2));
                if (eVar != null) {
                    eVar.onSuccess(list);
                }
                break;
        }
    }
}
