package com.tofly.ghrq_route.module.dasData.controller;

import android.content.Context;

import com.tofly.ghrq_route.module.dasData.domain.DasData;
import com.tofly.ghrq_route.module.dasData.service.DasDataServiceImpl;
import com.tofly.ghrq_route.module.dasData.service.IDasDataService;

import java.util.List;

/**
 * Created by Amu on 2017/3/8.
 */

public class DasDataController {
    /**
     * 是否在綫
     */
    boolean mbOnline;

    /**
     * Trouble接口实现对象
     */
    IDasDataService dasDataService;

    public DasDataController(){
        mbOnline = true;
        dasDataService = new DasDataServiceImpl();
    }

    /**
     *  批量上传设备的数据采集信息
     */
    public void uploadDasDataBatch(Context context, List<DasData> dataList, DasDataCallBack dasDataCallBack) {
        dasDataService.uploadDasDataBatch(context, dataList, dasDataCallBack);
    }

}
