Search in sources :

Example 1 with DobbyAi

use of com.inceptai.dobby.ai.DobbyAi in project dobby-android by InceptAi.

the class ProdModule method providesDobbyAi.

@Singleton
@Provides
public DobbyAi providesDobbyAi(DobbyApplication application, DobbyThreadpool threadpool, InferenceDatabaseWriter inferenceDatabaseWriter, FailureDatabaseWriter failureDatabaseWriter) {
    DobbyAi dobbyAi = new DobbyAi(threadpool, inferenceDatabaseWriter, failureDatabaseWriter, application);
    application.getProdComponent().inject(dobbyAi);
    return dobbyAi;
}
Also used : DobbyAi(com.inceptai.dobby.ai.DobbyAi) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

DobbyAi (com.inceptai.dobby.ai.DobbyAi)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1