package com.musicocracy.fpgk.ioc.activity;

import com.musicocracy.fpgk.domain.spotify.Browser;
import com.musicocracy.fpgk.mvp.model.SongSelectModel;
import com.musicocracy.fpgk.mvp.presenter.SongSelectPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class SongSelectModule {
    @Provides
    public SongSelectModel provideSongSelectModel(Browser browser) {
        return new SongSelectModel(browser, api);
    }

    @Provides
    public SongSelectPresenter provideSongSelectPresenter(SongSelectModel model) {
        return new SongSelectPresenter(model);
    }
}

@@ -253,16 +253,64 @@
 rovides;
+%0Aimport kaaes.spotify.webapi.android.SpotifyApi;
 %0A%0A@Modul
@@ -422,16 +422,32 @@
  browser
+, SpotifyApi api
 ) %7B%0A    

Set up dependency injection for spotify module including Spotify Api, Spotify Service, and the Browser.