package com.oo.eye.mvp.presenter;

import android.content.Context;

import com.oo.eye.mvp.contract.EyeHistroyContract;

/**
 * Created by xucon on 2017/12/26.
 */

public class EyeHistroyPresenter implements EyeHistroyContract.Presenter {

	private EyeHistroyContract.View mView;

	public EyeHistroyPresenter(EyeHistroyContract.View view){
		this.mView = view;
	}


	public void getEyeHistroy(Context context){
	}

	private void getEyeHistroyNet(int page,int limit){
//		EyeDataManager.getInstance().getEyeTestData(SnUtils.getSN(),page,limit)
//			.subscribe(new RxCallback<NewResponseImpl<ArrayList<EyeHistroyBean>>>() {
//					@Override
//					public void onSuccess(NewResponseImpl<ArrayList<EyeHistroyBean>> response) {
//						if(mView != null && mView.isActive()){
//							if(response.isSuccess()){
//								mView.getEyeHistroyNetSuccee(response.getData(),response.getPage());
//							}else{
//								mView.getEyeHistroyFail("数据获取失败");
//							}
//						}
//					}
//
//					@Override
//					public void onError(int errorCode, String errorMessage) {
//						if(mView != null && mView.isActive()){
//							mView.getEyeHistroyFail("数据获取失败");
//						}
//					}
//				});
	}
}
