using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CollaborativePlatformMain.DFEntity.MessageSubUtil
{
    /// <summary>
    /// 
    /// <para>文件名(File Name):     ContactsUtil.cs</para>
    /// 
    /// <para>描述(Description):     联系人数据类</para>
    /// 
    /// <para>数据表(Tables):        nothing</para>
    /// 
    /// <para>作者(Author):          Ou Rui Song</para>
    /// 
    /// <para>日期(Create Date):     2024年4月28日11:04:31</para>
    /// 
    /// 修改记录(Revision History):
    ///     R1:
    ///         修改作者:
    ///         修改日期:
    ///         修改理由:
    /// 
    /// </summary>
    public class ContactsUtil
    {
        /// <summary>
        /// 子级数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        public ContactsUtil(string id, string name)
        {
            Id = id;
            Name = name;
        }

        /// <summary>
        /// 父级数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="subDatas"></param>
        public ContactsUtil(string id, string name, List<ContactsUtil> subDatas) : this(id, name)
        {
            SubDatas = subDatas;
        }




        /// <summary>
        /// ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 子级数据
        /// </summary>
        public List<ContactsUtil> SubDatas { get; set; } = new List<ContactsUtil>();

    }
}
