using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model.CallCenterApi
{
    /// <summary>
    /// 外呼问卷列表
    /// </summary>
    public class Ask_QuestionList : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 通话记录id
        /// </summary>
        //[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string recordid { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string fullname { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 问卷id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string pageid { get; set; }
        /// <summary>
        /// 问卷名称
        /// </summary>
        public string pagetitle { get; set; }
        /// <summary>
        /// 问卷内容简述
        /// </summary>
        public string pagecontent { get; set; }
        /// <summary>
        /// 话务结果简述
        /// </summary>
        public string describe { get; set; }
        /// <summary>
        /// 呼叫结果（字典项）
        /// </summary>
        //[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string callresult { get; set; }
        /// <summary>
        /// 结果
        /// </summary>
        public List<resultPageQuestion> result { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string taskid { get; set; }

        /// <summary>
        /// 创建人工号
        /// </summary>
        public string createuser { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string createusername { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除工号
        /// </summary>
        public string deleteuser { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
    
    /// <summary>
    /// 试题 - 不用
    /// </summary>
    public class resultQuestion
    {
        public string queid { get; set; }
        public string quetitle { get; set; }
        public int type { get; set; }
        public string remark { get; set; }
        public List<resultQuestionItem> itemList { get; set; } = new List<resultQuestionItem>();
    }

    /// <summary>
    /// 选项 - 不用
    /// </summary>
    public class resultItem
    {
        public string itemid { get; set; }
        public string name { get; set; }
    }
}
