Search in sources :

Example 1 with TracklistRepository

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

the class AppModule method provideTracklistRepository.

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

Aggregations

DatabaseReference (com.google.firebase.database.DatabaseReference)1 FirebaseDatabase (com.google.firebase.database.FirebaseDatabase)1 Provides (dagger.Provides)1 TracklistRepository (se.zinokader.spotiq.repository.TracklistRepository)1