Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jlmd.android.newfilmsmvp.di.module; /*from w w w. j a v a 2s . c o m*/ import com.jlmd.android.newfilmsmvp.api.moviedetails.MovieDetailsApi; import com.jlmd.android.newfilmsmvp.api.upcomingmovies.UpcomingMoviesApi; import com.jlmd.android.newfilmsmvp.domain.model.Movie; import com.jlmd.android.newfilmsmvp.mvp.presenter.MovieDetailsPresenter; import com.jlmd.android.newfilmsmvp.mvp.presenter.MovieDetailsPresenterImp; import com.jlmd.android.newfilmsmvp.mvp.presenter.MoviesListPresenter; import com.jlmd.android.newfilmsmvp.mvp.presenter.MoviesListPresenterImp; import com.squareup.otto.Bus; import java.util.Comparator; import javax.inject.Named; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * @author jlmd */ @Module( complete = false, library = true ) public class PresenterModule { @Provides @Singleton MoviesListPresenter providesMoviesListPresenter(UpcomingMoviesApi upcomingMoviesApi, Bus eventBus, @Named("date") Comparator<Movie> movieDateComparator, @Named("title") Comparator<Movie> movieTitleComparator) { return new MoviesListPresenterImp(upcomingMoviesApi, eventBus, movieDateComparator, movieTitleComparator); } @Provides @Singleton MovieDetailsPresenter providesMovieDetailsPresenter(MovieDetailsApi movieDetailsApi) { return new MovieDetailsPresenterImp(movieDetailsApi); } }