package hainguyen.impala.injection.module;

import dagger.Module;
import dagger.Provides;
import hainguyen.impala.application.ApplicationBus;
import hainguyen.impala.feature.userdetails.presenter.UserDetailsPresenter;
import hainguyen.impala.feature.userdetails.presenter.UserDetailsPresenterImpl;
import hainguyen.impala.injection.scope.UserScope;
import hainguyen.impala.model.User;
import hainguyen.impala.network.model.LoginResponse;

@Module
public class UserModule {

    private User user;

    public UserModule(User user) {
        this.user = user;
    }

    @Provides
    @UserScope
    User provideUser() {
        return user;
    }

    @Provides
    @UserScope
    UserDetailsPresenter provideUserDetailsPresenter(ApplicationBus bus, User user) {
        return new UserDetailsPresenterImpl(bus, user);
    }
}

@@ -381,61 +381,8 @@
 ser;
-%0Aimport hainguyen.impala.network.model.LoginResponse;
 %0A%0A@M

Fix PMD bugs