using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
using System.ComponentModel;

namespace digioz
{
    /// <summary>
    /// Summary description for CommentEntry
    /// </summary>
    public class CommentEntry
    {
        private int ciID;
        private string csPostingPage;
        private string csComment;
        private string csUserName;
        private DateTime cdComDateTime;
        private int ciPageID;
        private string csAvatar;

        public int ID
        {
            get { return ciID; }
            set { ciID = value; }
        }

        public string PostingPage
        {
            get { return csPostingPage; }
            set { csPostingPage = value; }
        }

        public string Comment
        {
            get { return csComment; }
            set { csComment = value; }
        }

        public string UserName
        {
            get { return csUserName; }
            set { csUserName = value; }
        }

        public DateTime ComDateTime
        {
            get { return cdComDateTime; }
            set { cdComDateTime = value; }
        }

        public int PageID
        {
            get { return ciPageID; }
            set { ciPageID = value; }
        }

        public string Avatar
        {
            get { return csAvatar; }
            set { csAvatar = value; }
        }

        public CommentEntry()
        {
        }

        public CommentEntry(int piID, string psComment, DateTime pdComDateTime, int piPageID)
            : this(piID, psComment, String.Empty, pdComDateTime, piPageID, String.Empty) { }

        public CommentEntry(int piID, string psComment, string psUserName, DateTime pdComDateTime, int piPageID, string psAvatar)
        {
            ciID = piID;
            csComment = psComment;
            csUserName = psUserName;
            cdComDateTime = pdComDateTime;
            ciPageID = piPageID;
            csAvatar = psAvatar;
        }
    }
    public class CommentEntryList : BindingList<CommentEntry>
    {
        public CommentEntryList()
        { }
    }
}
