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

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;

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)
//			.subscribeOn(Schedulers.io())
//			.observeOn(AndroidSchedulers.mainThread())
//			.compose(view().bind())
//			.compose(view().injectProgress())
//			.subscribe(topics -> {
//				view().showTopics(topics);
//			}, throwable -> {
//				view().showThrowable(throwable);
//			});
	}
}

@@ -624,18 +624,16 @@
 ics() %7B%0A
-//
 %09%09imgurA
@@ -651,18 +651,16 @@
 opics()%0A
-//
 %09%09%09.map(
@@ -683,18 +683,16 @@
 etData)%0A
-//
 %09%09%09.subs
@@ -712,26 +712,24 @@
 ulers.io())%0A
-//
 %09%09%09.observeO
@@ -758,26 +758,24 @@
 inThread())%0A
-//
 %09%09%09.compose(
@@ -785,26 +785,24 @@
 w().bind())%0A
-//
 %09%09%09.compose(
@@ -826,18 +826,16 @@
 ress())%0A
-//
 %09%09%09.subs
@@ -848,26 +848,24 @@
 topics -%3E %7B%0A
-//
 %09%09%09%09view().s
@@ -883,18 +883,16 @@
 opics);%0A
-//
 %09%09%09%7D, th
@@ -904,18 +904,16 @@
 le -%3E %7B%0A
-//
 %09%09%09%09view
@@ -945,10 +945,8 @@
 e);%0A
-//
 %09%09%09%7D

fix modified origin code