package com.tofly.ghrq_route.module.planPointRepair.service;

import android.content.Context;

import com.alibaba.fastjson.JSONObject;
import com.tofly.ghrq_route.module.planPointRepair.controller.PointRepairCallBack;
import com.tofly.ghrq_route.module.planPointRepair.domain.PlanPointRepair;
import com.tofly.ghrq_route.module.trouble.domain.TroubleAudioBean;
import com.tofly.ghrq_route.module.trouble.domain.TroublePictureBean;

import java.util.List;

/**
 * Created by Amu on 2017/6/5.
 */

public interface IPointRepairService {
    /**
     *  添加设备检修点
     */
    public void addPointRepair(String token, PlanPointRepair pointRepair, PointRepairCallBack repairCallBack);

    /**
     *  获取历史设备检修点列表
     */
    public void getPointRepairList(String token, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     *  删除添加的设备检修点
     */
    public void removePointRepair(String token, String repairid, boolean ischild, PointRepairCallBack repairCallBack);

    /**
     *  更新设备检修点数据
     */
    public void updatePointRepair(String token, PlanPointRepair pointRepair, PointRepairCallBack repairCallBack);

    /**
     *  获取设备检修详细信息
     */
    public void getPointRepairInfo(String token, String pointid, String childplanid, PointRepairCallBack repairCallBack);

    /**
     *  添加子计划设备检修点
     */
    public void addPointChildRepair(String token, String child_plan_id, PlanPointRepair pointRepair, List<TroublePictureBean> photos, PointRepairCallBack repairCallBack);

    /**
     *  添加子计划调压设备等检修点
     */
    public void addAdjustPressDeviceChildRepair(Context context, PlanPointRepair pointRepair, List<TroublePictureBean> photos, boolean isUpdate, PointRepairCallBack repairCallBack);

    /**
     *  添加子计划阀门设备检修点
     */
    public void addCommonDeviceRepairRecord(Context context, PlanPointRepair pointRepair, List<TroublePictureBean> photos, boolean isUpdate, PointRepairCallBack repairCallBack);

    /**
     *  获取子计划设备检修点历史列表
     */
    public void getPointChildRepairList(String token, String child_plan_id, PlanPointRepair pointRepair, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     *  获取子计划调压设备检修点历史列表
     */
    public void getAdjustDeviceChildRepairList(Context context, String user_id, String plan_id, String point_id, final int pageindex, final int pagesize, final PointRepairCallBack repairCallBack);

    /**
     *  获取子计划阀门设备检修点历史列表
     */
    public void getCommonDeviceChildRepairList(Context context, String user_id, String plan_id, String point_id, final int pageindex, final int pagesize, final PointRepairCallBack repairCallBack);

    /**
     * 获取调压设备检修需要录入的参数配置
     */
    public void getAdjustDeviceSettingList(Context context, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     * 获取阀井设备检修需要录入的参数配置
     */
    public void getCommonDeviceSettingList(Context context, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     * 获取设备检修相关的nfc图文信息
     */
    public void getRepairNFCInfo(String token, String rfid, int device_type_id, PointRepairCallBack repairCallBack);

    /**
     *  获取巡检设备类型列表
     */
    public void getRouteDeviceTypeList(Context context, String typeIds, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     *  获取设备检修参数列表
     */
    public void getDeviceRouteParamList(Context context, String deviceId, int pageindex, int pagesize, PointRepairCallBack repairCallBack);

    /**
     *  添加子计划设备检修记录
     */
    public void uploadDeviceRouteRecord(Context context, JSONObject jsonObject, List<TroublePictureBean> pictures, List<TroubleAudioBean> audioBeans, boolean isUpdate, PointRepairCallBack repairCallBack);

    /**
     *  获取子计划设备检修历史列表
     */
    public void getDeviceRouteRecordList(Context context, String plan_id, String point_id, final int pageindex, final int pagesize, final PointRepairCallBack repairCallBack);
}
