using System;
using System.Collections.Generic;
using XYY.Core.Standard;

namespace XYY.Model.Standard.Task
{

    /// <summary>
    /// 后台任务监控对象，线程安全对象
    /// </summary>
    public class TaskTrackModel : BaseEntity
    {               

        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name
        {
            get; set;
        }

        /// <summary>
        /// 任务开始时间
        /// </summary>
        public DateTime? StartTime
        {
            get; set;
        }

        public int UserId
        {
            get; set;
        }

        /// <summary>
        /// 任务结束时间
        /// </summary>
        public DateTime? EndTime
        {
            get; set;
        }
        public int Summary
        {
            get; set;
        }

        /// <summary>
        /// 成功数
        /// </summary>
        public int SuccessQty
        {
            get; set;
        }

        /// <summary>
        /// 错误数
        /// </summary>
        public int ErrorQty
        {
            get; set;
        }

        /// <summary>
        /// 等待数
        /// </summary>
        public int WaitQty
        {
            get; set;
        }

        /// <summary>
        /// 正在执行数
        /// </summary>
        public int ExecutionQty
        {
            get; set;
        }
    }
}

public class TaskTrackModelItemResult
{
    /// <summary>
    /// 子任务key
    /// </summary>
    public string ItemKey
    {
        get; set;
    }

    /// <summary>
    /// 子任务失败消息
    /// </summary>
    public string ErrorMessage
    {
        get; set;
    }
}

