using System.Collections.Generic;
using System;

namespace XYY.Data.Model.Standard.Tracking.TrackingTraces
{
    public class TrackingTraceDoc
    {
        public List<TrackingTraceEvent> docs
        {
            get; set;
        }
    }

    public class TrackingTraceEvent
    {
        public bool found
        {
            get; set;
        }

        public string _id
        {
            get; set;
        }

        public TrackingTraceLog _source
        {
            get; set;
        }
    }

    public class TrackingTraceLog
    {

        public TrackingTraceLog()
        {

        }

        public TrackingTraceLog(string systeno, TrackingEventType eventType)
        {
            Key = CustomerNo + "_" + (int)TrackingEventType;
        }

        public string Key
        {
            get; set;
        }

        public string ApiName
        {
            get; set;
        }

        /// <summary>
        /// 系统单号
        /// </summary>
        public string CustomerNo
        {
            get; set;
        }

        /// <summary>
        /// 事件类型
        /// </summary>
        public TrackingEventType TrackingEventType
        {
            get; set;
        }

        /// <summary>
        /// 事件位置
        /// </summary>
        public string EventLoaction
        {
            get; set;
        }

        /// <summary>
        /// 事件内容
        /// </summary>
        public string EventContent
        {
            get; set;
        }

        /// <summary>
        /// 事件时间
        /// </summary>
        public DateTime EventTime
        {
            get; set;
        }

        /// <summary>
        /// 抓取时间
        /// </summary>
        public DateTime GetTime
        {
            get; set;
        }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime? SendTime
        {
            get; set;
        }

        public string StepName
        {
            get; set;
        }

        /// <summary>
        /// 发送结果
        /// </summary>
        public string SendMessage
        {
            get; set;
        }
    }
}
