using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YBDevice.Entity
{
    /// <summary>
    /// 微信小程序登录
    /// </summary>
    public class WXOpenLoginSubmitModel
    {
        /// <summary>
        /// 微信使用的code
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 公众号appid
        /// </summary>
        public string appid { get; set; } = "";
        /// <summary>
        /// 用户wxfansid
        /// </summary>
        public Guid? fansid { get; set; } = null;
    }
    /// <summary>
    /// 登录返回参数
    /// </summary>
    public class WxOpenLoginData
    {
        /// <summary>
        /// 唯一id,作为换取登录信息的凭据
        /// </summary>
        public string sessionid { get; set; }
        /// <summary>
        /// 是否展示微信快捷手机号注册
        /// </summary>
        public bool iswxphone { get; set; }
    }
    /// <summary>
    /// 微信小程序数据解密信息
    /// </summary>
    public class WxOpenDecryptSubmitModel
    {
        /// <summary>
        /// 唯一id,作为换取登录信息的凭据
        /// </summary>
        public string sessionId { get; set; }
        /// <summary>
        /// 加密数据
        /// </summary>
        public string encryptedData { get; set; }
        /// <summary>
        /// 向量
        /// </summary>
        public string iv { get; set; }
        /// <summary>
        /// 小程序appid
        /// </summary>
        public string appid { get; set; }

        /// <summary>
        /// 用户wxfansid
        /// </summary>
        public Guid? fansid { get; set; } = null;
    }

    /// <summary>
    /// 微信运动返回
    /// </summary>
    public class WXRunListModel
    {
        /// <summary>
        /// 最新的步数列表
        /// </summary>
        public List<WXRunItemModel> stepInfoList { get; set; }
        /// <summary>
        /// 今日步数
        /// </summary>
        public long TodayStep { get; set; }
        /// <summary>
        /// 最大步数
        /// </summary>
        public long TopStep { get; set; }
        /// <summary>
        /// 最大步数时间,时间戳形式
        /// </summary>
        public long TopStepTime { get; set; }
        /// <summary>
        /// 最大步数时间,时间形式
        /// </summary>
        public string TopStepDateTime { get; set; }
        /// <summary>
        /// 总步数
        /// </summary>
        public long TotalStep { get; set; }
    }
    /// <summary>
    /// 微信运动项
    /// </summary>
    public class WXRunItemModel
    {
        /// <summary>
        /// 步数
        /// </summary>
        public long Step { get; set; }
        /// <summary>
        /// 记录时间
        /// </summary>
        public string createtime { get; set; }
    }
}
