using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace BookDemo.QA
{
    /// <summary>
    /// 搜索缓存信息实体类
    /// </summary>
    [Serializable]
    public class SearchCacheInfo
    {
        public int QuestionId { get; set; }
        public string QuestionTitle { get; set; }
        public string QuestionText { get; set; }
        public string QuestionUserName { get; set; }
        public string BestAnswerText { get; set; }
        public string BestAnswerUserName { get; set; }
        public DateTime BestAnswerTime { get; set; }
        public int CatalogId { get; set; }
        public string CatalogName { get; set; }

        public SearchCacheInfo()
        {
        }
    }

    /// <summary>
    /// 提问、回答及关键字列表
    /// </summary>
    [Serializable]
    public class QuestionAndAnswers
    {
        public QAQuestion Question { get; set; }
        public List<QAAnswer> Answers { get; set; }
        public List<string> Keywords { get; set; }
        public QuestionAndAnswers()
        {
        }
    }
}
