using Nirvana.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Waste.Application.SubscribeInfo;

namespace Waste.Application.ThirdApiInfo
{
    /// <summary>
    /// 设备对接接口
    /// </summary>
    public interface IOpenService
    {
        /// <summary>
        /// 获取上报相关信息
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> GetDevInfoAsync(GetDevInfoRequestDto data);
        /// <summary>
        /// 心跳数据上报
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> PostHeartAsync(DevHeartRequestDto data);
        /// <summary>
        /// 获取设备注册信息
        /// </summary>
        /// <param name="ecode"></param>
        /// <returns></returns>
        Task<ResultInfo> RegInfoAsync(string ecode);

        /// <summary>
        /// 更新上报状态
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> UpdateStatusAsync(UpdateStatusDto data);
        /// <summary>
        /// 更新设备版本信息
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task UpdateVersionAsync(DeviceVerS2SDto data);
    }
}
