// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/action/Action.java
// public interface Action {
// 
//     public String hello();
// 
//     public String bye();
// 
//     public String fibonacci();
// 
//     public int calcFibNumber(int input);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/action/ActionType.java
// public enum ActionType {
//     HELLO, BYE, FIBONACCI
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/MainPresenter.java
// public interface MainPresenter {
// 
//     public void onActionSelected(ActionType type);
// 
//     public void calcFib(int fibNumber);
// 
//     public void updateUser();
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/MainPageView.java
// public interface MainPageView {
// 
//     public void showActionResultText(String resultText);
// 
//     public void showInputMethodView(boolean isShow);
// 
//     public void showLoading();
// 
//     public void hideLoading();
// 
//     public void onActionError();
// }


import android.os.AsyncTask;
import android.util.Log;
import com.newegg.tr.dagger2prac.model.action.Action;
import com.newegg.tr.dagger2prac.model.action.ActionType;
import com.newegg.tr.dagger2prac.presenter.MainPresenter;
import com.newegg.tr.dagger2prac.view.MainPageView;
import javax.inject.Inject;
package com.newegg.tr.dagger2prac.presenter.internal;




/**
 * Created by william on 15/2/2.
 */
public class MainPresenterImpl implements MainPresenter {

    private final static ActionType DEFAULT_ACTION = ActionType.HELLO;

    MainPageView mView;
    Action mModel;

    ActionType currentAction = DEFAULT_ACTION;

    @Inject
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/action/Action.java
// public interface Action {
// 
//     public String hello();
// 
//     public String bye();
// 
//     public String fibonacci();
// 
//     public int calcFibNumber(int input);
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/model/action/ActionType.java
// public enum ActionType {
//     HELLO, BYE, FIBONACCI
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/MainPresenter.java
// public interface MainPresenter {
// 
//     public void onActionSelected(ActionType type);
// 
//     public void calcFib(int fibNumber);
// 
//     public void updateUser();
// }
// 
// Path: app/src/main/java/com/newegg/tr/dagger2prac/view/MainPageView.java
// public interface MainPageView {
// 
//     public void showActionResultText(String resultText);
// 
//     public void showInputMethodView(boolean isShow);
// 
//     public void showLoading();
// 
//     public void hideLoading();
// 
//     public void onActionError();
// }


// Path: app/src/main/java/com/newegg/tr/dagger2prac/presenter/internal/MainPresenterImpl.java
import android.os.AsyncTask;
import android.util.Log;
import com.newegg.tr.dagger2prac.model.action.Action;
import com.newegg.tr.dagger2prac.model.action.ActionType;
import com.newegg.tr.dagger2prac.presenter.MainPresenter;
import com.newegg.tr.dagger2prac.view.MainPageView;
import javax.inject.Inject;

package com.newegg.tr.dagger2prac.presenter.internal;




/**
 * Created by william on 15/2/2.
 */
public class MainPresenterImpl implements MainPresenter {

    private final static ActionType DEFAULT_ACTION = ActionType.HELLO;

    MainPageView mView;
    Action mModel;

    ActionType currentAction = DEFAULT_ACTION;

    @Inject
    public MainPresenterImpl(MainPageView view, Action model) {