using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SolarPower.Models;
using SolarPower.Models.SensorDetail;
using SolarPower.Repository.Interface;

namespace SolarPower.Repository.Interface
{
    public interface ISensorDetailRepository : IRepositoryBase<SensorDetail> 
    {
        /// <summary>
        /// 修改設備-細項資料
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="properties"></param>
        /// <returns></returns>
        Task UpdateSensorDetailInfo(SensorDetail entity, List<string> properties);

        /// <summary>
        /// 取得設備-細項資料
        /// </summary>
        /// <param name="sensorTypeId"></param>
        /// <returns></returns>
        Task<List<SensorDetail>> GetAllSensorDetailAsync(int sensorTypeId);
        /// <summary>
        /// 取得設備-單一細項資料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SensorDetail> GetOneSensorDetailAsync(int id);

    }
}
