using System;
using System.Collections.Generic;
using System.Text;

namespace JuSNS.Model
{
    /// <summary>
    /// 投票实体类
    /// </summary>
    public class VoteInfo
    {
        private int _ID;
        private string _Title;
        private string _Intro;
        private int _UserID;
        private DateTime _AddTime;
        private int _Mode;
        private DateTime _EndTime;
        private int _JCnt;
        private int _VCnt;
        private int _IsFriend;

        /// <summary>
        /// 投票自动编号
        /// </summary>
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        /// <summary>
        /// 投票标题
        /// </summary>
        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }
        /// <summary>
        /// 描述
        /// </summary>
        public string Intro
        {
            get { return _Intro; }
            set { _Intro = value; }
        }
        /// <summary>
        /// 用户编号
        /// </summary>
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            get { return _AddTime; }
            set { _AddTime = value; }
        }
        /// <summary>
        /// 投票方式,1为单选,0为复选
        /// </summary>
        public int Mode
        {
            get { return _Mode; }
            set { _Mode = value; }
        }
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime EndTime
        {
            get { return _EndTime; }
            set { _EndTime = value; }
        }
        /// <summary>
        /// 参与人数
        /// </summary>
        public int JCnt
        {
            get { return _JCnt; }
            set { _JCnt = value; }
        }
        /// <summary>
        /// 投票人数
        /// </summary>
        public int VCnt
        {
            get { return _VCnt; }
            set { _VCnt = value; }
        }
        /// <summary>
        /// 是否仅好友可见,1为好友,0所有人
        /// </summary>
        public int IsFriend
        {
            get { return _IsFriend; }
            set { _IsFriend = value; }
        }
    }
}
