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

namespace XYY.Service.Standard.First.Model
{
    #region 51 航空查询返回结果

    public class Meta
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
    }

    public class Track_infoItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string plan_date { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string actual_date { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string @event { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string flight_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string piece { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// xyy状态
        /// 业务逻辑中使用，渠道末端并无此字段
        /// </summary>
        public int XYYStatus { get; set; }
    }

    public class Flight_info_newItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string flight_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string depart_station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string arrival_station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_depart_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string depart_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_arrival_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string arrival_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string piece { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// 已确认
        /// </summary>
        public string status { get; set; }
    }

    public class Return_data
    {
        /// <summary>
        /// 
        /// </summary>
        public int status_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Track_infoItem> track_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string piece { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string origin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string destination { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Flight_info_newItem> flight_info_new { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> flight_way_station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string last_event { get; set; }
        /// <summary>
        /// 变异实体
        /// 真实数据变量名为航班号，需特殊处理解析
        /// </summary>
        public List<flight_info> flight_Infos { get; set; }
    }

    public class Airline_info
    {
        /// <summary>
        /// 
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string track_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string trackpage_url { get; set; }
    }

    public class ladingInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string track_number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Return_data return_data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Airline_info airline_info { get; set; }
    }
    public class flight_info
    {
        /// <summary>
        /// 
        /// </summary>
        public string depart_station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string arrival_station { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_depart_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string depart_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_arrival_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string arrival_time { get; set; }
    }


    public class TrackData
    {
        /// <summary>
        /// 
        /// </summary>
        public ladingInfo ladingInfo { get; set; }
    }

    public class TrackResult
    {
        /// <summary>
        /// 
        /// </summary>
        public Meta meta { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public TrackData data { get; set; }
    }
    public class StatusResult {
        public Meta meta { get; set; }
    }
    #endregion
    #region 51 航空查询入参
    /// <summary>
    /// 入参
    /// Tracking-Api-Key:e0febb2a-eef1-45a3-b534-3dda7465fb4e
    /// </summary>
    public class TrackRequestBody
    {
        public string track_number { get; set; }

    }
    #endregion

}
