Search in sources :

Example 1 with PartiesRepository

use of se.zinokader.spotiq.repository.PartiesRepository in project SpotiQ by ZinoKader.

the class AppModule method providePartiesRepository.

@Provides
@Singleton
PartiesRepository providePartiesRepository() {
    FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
    DatabaseReference databaseReference = firebaseDatabase.getReference().child(FirebaseConstants.CHILD_PARTYLIST);
    return new PartiesRepository(databaseReference);
}
Also used : FirebaseDatabase(com.google.firebase.database.FirebaseDatabase) DatabaseReference(com.google.firebase.database.DatabaseReference) PartiesRepository(se.zinokader.spotiq.repository.PartiesRepository) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Example 2 with PartiesRepository

use of se.zinokader.spotiq.repository.PartiesRepository in project SpotiQ by ZinoKader.

the class AppModule method providePartiesRepository.

@Provides
PartiesRepository providePartiesRepository() {
    FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
    DatabaseReference databaseReference = firebaseDatabase.getReference().child(FirebaseConstants.CHILD_PARTYLIST);
    return new PartiesRepository(databaseReference);
}
Also used : FirebaseDatabase(com.google.firebase.database.FirebaseDatabase) DatabaseReference(com.google.firebase.database.DatabaseReference) PartiesRepository(se.zinokader.spotiq.repository.PartiesRepository) Provides(dagger.Provides)

Aggregations

DatabaseReference (com.google.firebase.database.DatabaseReference)2 FirebaseDatabase (com.google.firebase.database.FirebaseDatabase)2 Provides (dagger.Provides)2 PartiesRepository (se.zinokader.spotiq.repository.PartiesRepository)2 Singleton (javax.inject.Singleton)1