BestQA.QueryInterface/DTOs/QuestionDTO.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using BestQA.Metadata;

namespace BestQA.QueryService.DTOs
{
    public partial class QuestionDTO
    {
        /// <summary>
        /// Gets or sets the unique identifier.
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// Gets or sets the content.
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// Gets or sets the support count.
        /// </summary>
        public int SupportCnt { get; set; }
        /// <summary>
        /// Gets or sets the oppose count.
        /// </summary>
        public int OpposeCnt { get; set; }
        /// <summary>
        /// Gets or sets the reward.
        /// </summary>
        public int Reward { get; set; }
        /// <summary>
        /// Gets or sets the created time.
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// Gets or sets the state.
        /// </summary>
        /// <value>The state.</value>
        public QuestionState  State { get; set; }
        /// <summary>
        /// Gets or sets the user unique identifier.
        /// </summary>
        public string UserId { get; set; }

        public IEnumerable<AnswerDTO> Answers { get; set; } 

        public string GetStateText()
        {
            return State.ToString();
        }
    }

}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。