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

namespace Assets.Scripts.Apis.Models
{
    public class MapRoute
    {
        public int Id { get; set; }
        /// <summary>
        /// 路线名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 路线描述
        /// </summary>
        public string Dec { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string DirPath { get; set; }
        /// <summary>
        /// 路线区域
        /// </summary>
        public int Area { get; set; }
        /// <summary>
        /// 区域名称
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 是否删除：0未删除，1删除
        /// </summary>
        public bool? IsUsable { get; set; }
        /// <summary>
        /// 是否官方路书
        /// </summary>
        public bool? IsOfficial { get; set; }
        /// <summary>
        /// 路书的hash值，判断是否重复,得到byte[] hashcode必须传入
        /// </summary>
        public string Hash { get; set; }
        /// <summary>
        /// 路线长度
        /// </summary>
        public double Distance { get; set; }
        /// <summary>
        /// 最大高程落差
        /// </summary>
        public double EleDifference { get; set; }
        /// <summary>
        /// 落差长度
        /// </summary>
        public int GapLength { get; set; }
        /// <summary>
        /// 累计爬升
        /// </summary>
        public double? TotalClimb { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 状态（0未发布，1已发布）
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 封面文件地址
        /// </summary>
        public string CoverImage { get; set; }
        /// <summary>
        /// 海拔数据
        /// </summary>
        public string ElevationPath { get; set; }
        /// <summary>
        /// 做为附近的人计算参数，不做数据存储
        /// </summary>
        public double? Near { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string NickName { get; set; }


        public double[] Point { get; set; }

        public string Address { get; set; }

        public double AverageGrade { get; set; }

        public bool IsFavorite { get; set; }

        public bool Enable3D { get; set; }
    }
}
