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

namespace JuSNS.Model
{
    /// <summary>
    /// 日志信息
    /// </summary>
    public class BlogInfo
    {
        private int _ID;
        private int _UserID;
        private string _Content = string.Empty;
        private DateTime _PostTime;
        private string _PostIP;
        private bool _IsLock;
        private string _Title = string.Empty;
        private int _Comments;
        private EnumPrivacy _Privacy;
        private string _PicPath = string.Empty;
        private DateTime _LastModTime;
        private int _Reads;
        private string _UserName;
        private string _UserPortrait = string.Empty;
        /// <summary>
        /// 编号
        /// </summary>
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        /// <summary>
        /// 发表的用户ID
        /// </summary>
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        /// <summary>
        /// 日志标题
        /// </summary>
        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }
        /// <summary>
        /// 日志内容
        /// </summary>
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }
        /// <summary>
        /// 发表日期
        /// </summary>
        public DateTime PostTime
        {
            get { return _PostTime; }
            set { _PostTime = value; }
        }
        /// <summary>
        /// 发表时IP
        /// </summary>
        public string PostIP
        {
            get { return _PostIP; }
            set { _PostIP = value; }
        }
        /// <summary>
        /// 是否被锁定
        /// </summary>
        public bool IsLock
        {
            get { return _IsLock; }
            set { _IsLock = value; }
        }
        /// <summary>
        /// 评论数
        /// </summary>
        public int Comments
        {
            get { return _Comments; }
            set { _Comments = value; }
        }
        /// <summary>
        /// 隐私设置
        /// </summary>
        public EnumPrivacy Privacy
        {
            get { return _Privacy; }
            set { _Privacy = value; }
        }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string PicPath
        {
            get { return _PicPath; }
            set { _PicPath = value; }
        }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModTime
        {
            get { return _LastModTime; }
            set { _LastModTime = value; }
        }
        /// <summary>
        /// 被查看次数
        /// </summary>
        public int Reads
        {
            get { return _Reads; }
            set { _Reads = value; }
        }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserPortrait
        {
            get { return _UserPortrait; }
            set { _UserPortrait = value; }
        }
    }
    /// <summary>
    /// 日志评论信息
    /// </summary>
    public class BlogCommentInfo
    {
        private int _ID;
        private int _BlogID;
        private int _UserID;
        private string _UserName;
        private string _UserNetwork = string.Empty;
        private string _Content;
        private DateTime _PostTime;
        private string _UserPortrait = string.Empty;
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        /// <summary>
        /// ID
        /// </summary>
        public int BlogID
        {
            get { return _BlogID; }
            set { _BlogID = value; }
        }
        /// <summary>
        /// 评论人ID
        /// </summary>
        public int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        /// <summary>
        /// 评论者姓名
        /// </summary>
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        /// <summary>
        /// 评论者的网络
        /// </summary>
        public string UserNetwork
        {
            get { return _UserNetwork; }
            set { _UserNetwork = value; }
        }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }
        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime PostTime
        {
            get { return _PostTime; }
            set { _PostTime = value; }
        }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserPortrait
        {
            get { return _UserPortrait; }
            set { _UserPortrait = value; }
        }
    }
}
