// Path: app/src/main/java/com/arellomobile/github/mvp/common/AuthUtils.java
// public class AuthUtils {
// 	private static final String TOKEN = "token";
// 
// 	public static String getToken() {
// 		return PrefUtils.getPrefs().getString(TOKEN, "");
// 	}
// 
// 	public static void setToken(String token) {
// 		PrefUtils.getEditor().putString(TOKEN, token).commit();
// 	}
// }
// 
// Path: app/src/main/java/com/arellomobile/github/mvp/views/SplashView.java
// public interface SplashView extends MvpView {
// 	void setAuthorized(boolean isAuthorized);
// }


import android.text.TextUtils;
import com.arellomobile.github.mvp.common.AuthUtils;
import com.arellomobile.github.mvp.views.SplashView;
import com.arellomobile.mvp.MvpPresenter;
import rx.Observable;
package com.arellomobile.github.mvp.presenters;




/**
 * Date: 18.01.2016
 * Time: 15:38
 *
 * @author Yuri Shmakov
 */
public class SplashPresenter extends MvpPresenter<SplashView> {
	public void checkAuthorized() {
// Path: app/src/main/java/com/arellomobile/github/mvp/common/AuthUtils.java
// public class AuthUtils {
// 	private static final String TOKEN = "token";
// 
// 	public static String getToken() {
// 		return PrefUtils.getPrefs().getString(TOKEN, "");
// 	}
// 
// 	public static void setToken(String token) {
// 		PrefUtils.getEditor().putString(TOKEN, token).commit();
// 	}
// }
// 
// Path: app/src/main/java/com/arellomobile/github/mvp/views/SplashView.java
// public interface SplashView extends MvpView {
// 	void setAuthorized(boolean isAuthorized);
// }


// Path: app/src/main/java/com/arellomobile/github/mvp/presenters/SplashPresenter.java
import android.text.TextUtils;
import com.arellomobile.github.mvp.common.AuthUtils;
import com.arellomobile.github.mvp.views.SplashView;
import com.arellomobile.mvp.MvpPresenter;
import rx.Observable;

package com.arellomobile.github.mvp.presenters;




/**
 * Date: 18.01.2016
 * Time: 15:38
 *
 * @author Yuri Shmakov
 */
public class SplashPresenter extends MvpPresenter<SplashView> {
	public void checkAuthorized() {
		final Observable<String> getTokenObservable = Observable.create(subscriber -> subscriber.onNext(AuthUtils.getToken()));