package com.yidianling.course.courseNew.courseList;//package com.yidianling.course.courseNew.courseList;
//
//import com.yidianling.common.tools.LogUtil;
//import com.yidianling.course.coursePlay.common.net.Command;
//import com.yidianling.course.coursePlay.common.net.RetrofitUtils;
//import com.yidianling.course.coursePlay.moudle.Course;
//import com.yidianling.ydlcommon.http.RxUtils;
//
//import java.util.List;
//
//import io.reactivex.android.schedulers.AndroidSchedulers;
//import io.reactivex.functions.Consumer;
//import io.reactivex.schedulers.Schedulers;
//
///**
// * Created by Jim on 2018/7/16 0016.
// */
//
//public class CourseListPresenter {
//
//    private ICourseListView mView;
//
//    public CourseListPresenter(ICourseListView view){
//        mView=view;
//    }
//
//    public void fetchData(Command.GetCourse cmd) {
//        RetrofitUtils.getCourseList(cmd)
//                .subscribeOn(Schedulers.io())
//                .compose(RxUtils.resultData())
//                .observeOn(AndroidSchedulers.mainThread())
//                .subscribe(resp-> {
//
//                },throwable -> {
//                    mView.showLoadErrorView();
//                    LogUtil.e("load error: "+throwable.toString());
//                });
//    }
//
//}
