123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- using IoTIntegrationPlatform.Model.common;
- using IoTIntegrationPlatform.Model.Dto;
- using IoTIntegrationPlatform.Model.Enum;
- using IoTIntegrationPlatform.Model.Model;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using static IoTIntegrationPlatform.Model.Enum.EnumDevice;
- namespace IoTIntegrationPlatform.Interface
- {
- public interface IDeviceService
- {
- /// <summary>
- /// 获取平台型号
- /// </summary>
- /// <param name="platformModelId"></param>
- /// <param name="code"></param>
- /// <returns></returns>
- PlatformModel GetPlatformModelInfo(int platformModelId, string code);
- /// <summary>
- /// 获取平台型号列表
- /// </summary>
- /// <param name="parm"></param>
- /// <param name="page"></param>
- /// <returns></returns>
- List<PlatformModel> GetPlatformModelList(BaseParm parm, ref int page);
- /// <summary>
- /// 添加平台型号
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool AddPlatformModel(PlatformModel model);
- /// <summary>
- /// 编辑平台设备型号
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformModel(PlatformModel model);
- /// <summary>
- /// 删除平台设备型号
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- bool DeletePlatformModel(int id);
- /// <summary>
- /// 获取设备明细信息
- /// </summary>
- /// <param name="detailId"></param>
- /// <param name="deviceName"></param>
- /// <param name="platformModelId"></param>
- /// <param name="deviceType"></param>
- /// <param name="deviceCommunicationType"></param>
- /// <returns></returns>
- PlatformModelDetail GetPlatformModelDetailInfo(int detailId, string deviceName, int platformModelId, int deviceType, int deviceCommunicationType);
- /// <summary>
- /// 获取平台型号明细列表
- /// </summary>
- /// <param name="parm"></param>
- /// <param name="page"></param>
- /// <returns></returns>
- List<PlatformModelDetail> GetPlatformModelDetailList(BaseParm parm, ref int page);
- /// <summary>
- /// 添加平台型号明细
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool AddPlatformModelDetail(PlatformModelDetail model);
- /// <summary>
- /// 编辑平台设备型号
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformModelDetail(PlatformModelDetail model);
- /// <summary>
- /// 删除平台设备型号
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- bool DeletePlatformModelDetail(int id);
- /// <summary>
- /// 获取平台设备信息
- /// </summary>
- /// <param name="platformId"></param>
- /// <param name="code"></param>
- /// <param name="customerId"></param>
- /// <returns></returns>
- PlatformDeviceInfo GetPlatformDeviceInfoInfo(int platformId, string code, int customerId);
- /// <summary>
- /// 获取平台设备列表
- /// </summary>
- /// <param name="parm"></param>
- /// <param name="page"></param>
- /// <returns></returns>
- List<PlatformDeviceInfoDto> GetPlatformDeviceList(BaseParm parm, ref int page);
- /// <summary>
- /// 添加平台设备
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool AddPlatformDeviceInfo(PlatformDeviceInfo model);
- /// <summary>
- /// 编辑平台设备
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformDeviceInfo(PlatformDeviceInfo model);
- /// <summary>
- /// 批量编辑平台设备状态
- /// </summary>
- /// <param name="dataList"></param>
- /// <returns></returns>
- bool BatchUpdatePlatformDeviceStatus(List<PlatformDeviceInfoDto> dataList);
- /// <summary>
- /// 编辑平台状态
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformState(PlatformDeviceInfo model);
- /// <summary>
- /// 删除平台设备
- /// </summary>
- /// <param name="platformId"></param>
- /// <returns></returns>
- bool DeletePlatformDeviceInfo(int platformId);
- /// <summary>
- /// 根据mac地址修改平台设备心跳时间
- /// </summary>
- /// <param name="deviceMac"></param>
- /// <returns></returns>
- bool UpdateGatewayDeviceHeartTime(string deviceMac);
- /// <summary>
- /// 获取平台子设备列表
- /// </summary>
- /// <param name="parm"></param>
- /// <param name="page"></param>
- /// <returns></returns>
- List<PlatformDeviceDetailDto> GetPlatformDeviceDetailList(BaseParm parm, ref int page);
- /// <summary>
- /// 编辑平台子设备
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformSubDeviceInfo(PlatformDeviceDetail model);
- /// <summary>
- /// 编辑平台明细设备值
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdatedPlatformSubDeviceValue(PlatformDeviceDetail model);
- /// <summary>
- /// 删除平台子设备
- /// </summary>
- /// <param name="deviceId"></param>
- /// <returns></returns>
- bool DeletePlatformSubDeviceInfo(string deviceId);
- /// <summary>
- /// 编辑设备状态或值(根据设备ID)
- /// </summary>
- /// <param name="deviceId"></param>
- /// <param name="deviceStatus"></param>
- /// <param name="deviceValue"></param>
- /// <returns></returns>
- bool UpdateDeviceStateOrValue(string deviceId, EnumDeviceStatus deviceStatus, string deviceValue);
- /// <summary>
- /// 获取设备信息
- /// </summary>
- /// <param name="device_id"></param>
- /// <returns></returns>
- PlatformDeviceDetail GetDevideInfo(string device_id);
- /// <summary>
- /// 编辑设备读取数据状态
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool UpdateDeviceReadState(PlatformDeviceDetail model);
- }
- }
|