using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YB.DeviceStand.Domain.Shared;

namespace YB.DeviceStand.Domain
{
    /// <summary>
    /// 计算标准
    /// </summary>
    public class LevelS2SDto
    {
        /// <summary>
        /// 用户性别,1-男,2-女,0-未知
        /// </summary>
        public UserSex Sex { get; set; }
        /// <summary>
        /// 出生年月日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 当前值
        /// </summary>
        public decimal value { get; set; }
        /// <summary>
        /// 用户测量类型,1-bmi,2-身高,3-体重,4-头围
        /// </summary>
        public UserResultType Type { get; set; }
    }
    /// <summary>
    /// 等级范围
    /// </summary>
    public class LevelValS2SDto
    {
        /// <summary>
        /// 最大值
        /// </summary>
        public decimal maxvalue { get; set; }
        /// <summary>
        /// 最小值
        /// </summary>
        public decimal minvalue { get; set; }

        /// <summary>
        /// 标准描述
        /// </summary>
        public string text { get; set; } = "";
        /// <summary>
        /// 颜色代码
        /// </summary>
        public string color { get; set; } = "";
    }

    /// <summary>
    /// 等级标准
    /// </summary>
    public class LevelInfoS2SDto
    {
        /// <summary>
        /// 等级值
        /// </summary>
        public string Level { get; set; } = "";
        /// <summary>
        /// 等级列表
        /// </summary>
        public List<LevelValS2SDto> list { get; set; }
        /// <summary>
        /// 等级值颜色
        /// </summary>
        public string Color { get; set; } = "";
        /// <summary>
        /// 标准值
        /// </summary>
        public decimal Media { get; set; }
    }
}
