// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/SampleApplication.java
// public class SampleApplication extends Application {
// 	private ApplicationComponent applicationComponent;
// 
// 	@Override
// 	public void onCreate() {
// 		super.onCreate();
// 		applicationComponent = createComponent();
// 	}
// 
// 	private ApplicationComponent createComponent() {
// 		return DaggerApplicationComponent.builder()
// 			.applicationModule(new ApplicationModule(this))
// 			.dataModule(new DataModule())
// 			.build();
// 	}
// 
// 	public ApplicationComponent getApplicationComponent() {
// 		return applicationComponent;
// 	}
// 
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/Topic.java
// public class Topic {
//     private long id;
// 
//     private String name;
// 
//     private String description;
// 
//     private TopPost topPost;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public TopPost getTopPost() {
//         return topPost;
//     }
// 
//     public void setTopPost(TopPost topPost) {
//         this.topPost = topPost;
//     }
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/di/module/ActivityModule.java
// @Module
// public class ActivityModule {
// 
// 	private Activity activity;
// 
// 	public ActivityModule(Activity activity) {
// 		this.activity = activity;
// 	}
// 
// 	@Provides
// 	@PerActivity
// 	public Activity activity() {
// 		return activity;
// 	}
// 
// 	@Provides
// 	@PerActivity
// 	public ProgressIndicatorProvider progressIndicatorProvider(Activity activity) {
// 		return new ProgressIndicatorProvider(activity);
// 	}
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/BaseMvpActivity.java
// public abstract class BaseMvpActivity extends RxActivity implements BaseMvpView {
// 
// 	@Inject
// 	ProgressIndicatorProvider progressIndicatorProvider;
// 
// 	private CompositeSubscription subscriptions = new CompositeSubscription();
// 
// 	@Override
// 	public <T> Observable.Transformer<T, T> injectProgress() {
// 		ProgressDialog progress = progressIndicatorProvider.provide();
// 		return observable -> observable
// 			.doOnSubscribe(progress::show)
// 			.doOnUnsubscribe((Action0) progress::dismiss);
// 	}
// 
// 	@Override
// 	public <T> Observable.Transformer<T, T> bind() {
// 		return observable -> observable
// 			.compose(bindToLifecycle())
// 			.lift(SubscriptionUtils.composite(subscriptions));
// 	}
// 
// 	@Override
// 	protected void onDestroy() {
// 		subscriptions.unsubscribe();
// 		super.onDestroy();
// 	}
// 
// 	@Override
// 	public void showThrowable(Throwable throwable) {
// 		Toast.makeText(this, throwable.getMessage(), Toast.LENGTH_LONG).show();
// 	}
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.gdgand.rxjava.rxjavasample.hotandcold.R;
import com.gdgand.rxjava.rxjavasample.hotandcold.SampleApplication;
import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.Topic;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.DaggerActivityComponent;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.module.ActivityModule;
import com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.BaseMvpActivity;
import java.util.List;
import javax.inject.Inject;
package com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.imgur;






public class ImgurActivity extends BaseMvpActivity implements ImgurMvpView {

	@Inject
	ImgurMvpPresenter presenter;

	@BindView(R.id.recyclerView)
	RecyclerView recyclerView;

	private ImgurAdapter adapter;

	@Override
	protected void onCreate(@Nullable Bundle savedInstanceState) {
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/SampleApplication.java
// public class SampleApplication extends Application {
// 	private ApplicationComponent applicationComponent;
// 
// 	@Override
// 	public void onCreate() {
// 		super.onCreate();
// 		applicationComponent = createComponent();
// 	}
// 
// 	private ApplicationComponent createComponent() {
// 		return DaggerApplicationComponent.builder()
// 			.applicationModule(new ApplicationModule(this))
// 			.dataModule(new DataModule())
// 			.build();
// 	}
// 
// 	public ApplicationComponent getApplicationComponent() {
// 		return applicationComponent;
// 	}
// 
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/data/imgur/Topic.java
// public class Topic {
//     private long id;
// 
//     private String name;
// 
//     private String description;
// 
//     private TopPost topPost;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// 
//     public void setDescription(String description) {
//         this.description = description;
//     }
// 
//     public TopPost getTopPost() {
//         return topPost;
//     }
// 
//     public void setTopPost(TopPost topPost) {
//         this.topPost = topPost;
//     }
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/di/module/ActivityModule.java
// @Module
// public class ActivityModule {
// 
// 	private Activity activity;
// 
// 	public ActivityModule(Activity activity) {
// 		this.activity = activity;
// 	}
// 
// 	@Provides
// 	@PerActivity
// 	public Activity activity() {
// 		return activity;
// 	}
// 
// 	@Provides
// 	@PerActivity
// 	public ProgressIndicatorProvider progressIndicatorProvider(Activity activity) {
// 		return new ProgressIndicatorProvider(activity);
// 	}
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/BaseMvpActivity.java
// public abstract class BaseMvpActivity extends RxActivity implements BaseMvpView {
// 
// 	@Inject
// 	ProgressIndicatorProvider progressIndicatorProvider;
// 
// 	private CompositeSubscription subscriptions = new CompositeSubscription();
// 
// 	@Override
// 	public <T> Observable.Transformer<T, T> injectProgress() {
// 		ProgressDialog progress = progressIndicatorProvider.provide();
// 		return observable -> observable
// 			.doOnSubscribe(progress::show)
// 			.doOnUnsubscribe((Action0) progress::dismiss);
// 	}
// 
// 	@Override
// 	public <T> Observable.Transformer<T, T> bind() {
// 		return observable -> observable
// 			.compose(bindToLifecycle())
// 			.lift(SubscriptionUtils.composite(subscriptions));
// 	}
// 
// 	@Override
// 	protected void onDestroy() {
// 		subscriptions.unsubscribe();
// 		super.onDestroy();
// 	}
// 
// 	@Override
// 	public void showThrowable(Throwable throwable) {
// 		Toast.makeText(this, throwable.getMessage(), Toast.LENGTH_LONG).show();
// 	}
// }


// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/imgur/ImgurActivity.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.gdgand.rxjava.rxjavasample.hotandcold.R;
import com.gdgand.rxjava.rxjavasample.hotandcold.SampleApplication;
import com.gdgand.rxjava.rxjavasample.hotandcold.data.imgur.Topic;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.component.DaggerActivityComponent;
import com.gdgand.rxjava.rxjavasample.hotandcold.di.module.ActivityModule;
import com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp.BaseMvpActivity;
import java.util.List;
import javax.inject.Inject;

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






public class ImgurActivity extends BaseMvpActivity implements ImgurMvpView {

	@Inject
	ImgurMvpPresenter presenter;

	@BindView(R.id.recyclerView)
	RecyclerView recyclerView;

	private ImgurAdapter adapter;

	@Override
	protected void onCreate(@Nullable Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);