using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// KbdishVirtualCatetorySimplifyInfo Data Structure.
    /// </summary>
    [Serializable]
    public class KbdishVirtualCatetorySimplifyInfo : AopObject
    {
        /// <summary>
        /// 虚拟类目的名称
        /// </summary>
        [XmlElement("catetory_name")]
        public string CatetoryName { get; set; }

        /// <summary>
        /// 虚拟类目的排序值，需要保证为数字类型，如果不填默认为1
        /// </summary>
        [XmlElement("catetory_sort")]
        public string CatetorySort { get; set; }

        /// <summary>
        /// 虚拟类目关联的菜品信息
        /// </summary>
        [XmlArray("dish_list")]
        [XmlArrayItem("kbdish_virtual_dish_simplify_info")]
        public List<KbdishVirtualDishSimplifyInfo> DishList { get; set; }

        /// <summary>
        /// 外部门店id的list
        /// </summary>
        [XmlArray("out_shop_ids")]
        [XmlArrayItem("string")]
        public List<string> OutShopIds { get; set; }

        /// <summary>
        /// 菜品在菜谱中的售卖时间，同一个out_dish_id都指定的情况下，以第一个为准
        /// </summary>
        [XmlArray("time_ranges")]
        [XmlArrayItem("string")]
        public List<string> TimeRanges { get; set; }
    }
}
