using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using YBDevice.Entity;

namespace YBDevice.NApi.Application.SubscriberInfo
{
    /// <summary>
    /// CAP订阅相关接口
    /// </summary>
    public interface ISubscriberService
    {
        /// <summary>
        /// 添加用户使用过的设备类型
        /// </summary>
        /// <param name="data"></param>
        Task InsertRegUserDevTypeAsync(RegUserDevTypeS2SDto data);
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="message"></param>
        void InsertErrorLogger(string message);
        /// <summary>
        /// 添加通知日志
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        Task InsertNoticeLoggerAsync(YB_NoticeLogger message);

        /// <summary>
        /// 更新实时数据
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task UpdateRealData(UpdateRealDataS2SDtO data);

        /// <summary>
        /// 更新粉丝数据
        /// </summary>
        /// <param name="userinfo"></param>
        /// <returns></returns>
       Task UpdateFansData(YB_WXFans userinfo);
    }
}
