// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/ImgurApi.java
// public interface ImgurApi {
// 
// 	@GET("/3/topics/defaults")
// 	Observable<TopicResponse> defaultTopics();
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/TopicResponse.java
// public class TopicResponse {
// 
// 	private List<Topic> data;
// 
// 	public void setData(List<Topic> data) {
// 		this.data = data;
// 	}
// 
// 	public List<Topic> getData() {
// 		return data;
// 	}
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/BasePresenter.java
// public abstract class BasePresenter<VIEW extends BaseMvpView> {
// 
// 	private VIEW view;
// 
// 	public void attachView(VIEW view) {
// 		this.view = view;
// 	}
// 
// 	public void detachView() {
// 		view = null;
// 	}
// 
// 	protected VIEW view() {
// 		return view;
// 	}
// }


import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.ImgurApi;
import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.TopicResponse;
import com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.BasePresenter;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import javax.inject.Inject;
package com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.imgur;




public class ImgurMvpPresenter extends BasePresenter<ImgurMvpView> {

	private ImgurApi imgurApi;

	@Inject
	public ImgurMvpPresenter(ImgurApi imgurApi) {
		this.imgurApi = imgurApi;
	}

	public void refreshTopics() {
		imgurApi.defaultTopics()
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/ImgurApi.java
// public interface ImgurApi {
// 
// 	@GET("/3/topics/defaults")
// 	Observable<TopicResponse> defaultTopics();
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/TopicResponse.java
// public class TopicResponse {
// 
// 	private List<Topic> data;
// 
// 	public void setData(List<Topic> data) {
// 		this.data = data;
// 	}
// 
// 	public List<Topic> getData() {
// 		return data;
// 	}
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/BasePresenter.java
// public abstract class BasePresenter<VIEW extends BaseMvpView> {
// 
// 	private VIEW view;
// 
// 	public void attachView(VIEW view) {
// 		this.view = view;
// 	}
// 
// 	public void detachView() {
// 		view = null;
// 	}
// 
// 	protected VIEW view() {
// 		return view;
// 	}
// }


// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/imgur/ImgurMvpPresenter.java
import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.ImgurApi;
import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.TopicResponse;
import com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.BasePresenter;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import javax.inject.Inject;

package com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.imgur;




public class ImgurMvpPresenter extends BasePresenter<ImgurMvpView> {

	private ImgurApi imgurApi;

	@Inject
	public ImgurMvpPresenter(ImgurApi imgurApi) {
		this.imgurApi = imgurApi;
	}

	public void refreshTopics() {
		imgurApi.defaultTopics()
			.map(TopicResponse::getData)