using System;

namespace ChuPiao.Common.Models
{
    /// <summary>
    /// 竟彩彩票机对阵实体类接口
    /// </summary>
    public interface IJcMachineMatchEntity
    {
        int LotId { get;set;}

        /// <summary>
        /// 主键ID
        /// </summary>
        int Id { get; set; }

        /// <summary>
        /// 对阵日期
        /// </summary>
        int Abbdate { get; set; }

        /// <summary>
        /// 对阵
        /// </summary>
        string Match { get; set; }

        /// <summary>
        /// 主队
        /// </summary>
        string HomeTeam { get; set; }

        /// <summary>
        /// 客队
        /// </summary>
        string AwayTeam { get; set; }

        /// <summary>
        /// 让分（默认0，主让为负数）
        /// </summary>
        float RangScore { get; set; }

        /// <summary>
        /// 预设总分
        /// </summary>
        float PreTotalScore { get; set; }

        /// <summary>
        /// 比赛时间
        /// </summary>
        DateTime MatchTime { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        DateTime AddTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        DateTime UpdateTime { get; set; }

        /// <summary>
        /// 电子票文本
        /// </summary>
        string PrnText { get; set; }
    }

    /// <summary>
    /// 竟彩彩票机对阵实体类
    /// </summary>
    public class JcMachineMatchEntity : IJcMachineMatchEntity
    {
        #region Implementation of IJcMachineMatchEntity

        private int _lotid;
        private int _abbdate;
        private DateTime _addTime = DateTime.Now;

        private string _awayTeam = string.Empty;
        private string _homeTeam = string.Empty;
        private int _id;
        private string _match = string.Empty;

        private DateTime _matchTime = new DateTime(1900, 1, 1);
        private float _preTotalScore;

        private string _prnText = string.Empty;
        private float _rangScore;
        private DateTime _updateTime = new DateTime(1900, 1, 1);


        public int LotId
        {
            get
            {
                return _lotid;
            }
            set
            {
                _lotid = value;
            }
        }

        /// <summary>
        /// 主键ID
        /// </summary>
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 对阵日期
        /// </summary>
        public int Abbdate
        {
            get { return _abbdate; }
            set { _abbdate = value; }
        }

        /// <summary>
        /// 对阵
        /// </summary>
        public string Match
        {
            get { return _match; }
            set { _match = value; }
        }

        /// <summary>
        /// 主队
        /// </summary>
        public string HomeTeam
        {
            get { return _homeTeam; }
            set { _homeTeam = value; }
        }

        /// <summary>
        /// 客队
        /// </summary>
        public string AwayTeam
        {
            get { return _awayTeam; }
            set { _awayTeam = value; }
        }

        /// <summary>
        /// 让分（默认0，主让为负数）
        /// </summary>
        public float RangScore
        {
            get { return _rangScore; }
            set { _rangScore = value; }
        }

        /// <summary>
        /// 预设总分
        /// </summary>
        public float PreTotalScore
        {
            get { return _preTotalScore; }
            set { _preTotalScore = value; }
        }

        /// <summary>
        /// 比赛时间
        /// </summary>
        public DateTime MatchTime
        {
            get { return _matchTime; }
            set { _matchTime = value; }
        }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            get { return _addTime; }
            set { _addTime = value; }
        }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime
        {
            get { return _updateTime; }
            set { _updateTime = value; }
        }

        /// <summary>
        /// 电子票文本
        /// </summary>
        public string PrnText
        {
            get { return _prnText; }
            set { _prnText = value; }
        }



        #endregion

    }
}