using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.Repository.Response
{
    public class ResponseGetWorkingGroups 
    {
        public int id { get; set; }

        public int sectionId { get; set; }

        public string sectionName { get; set; }

        public string name { get; set; }

        public string user_mids { get; set; }

        public string shift_ids { get; set; }

        public int userCount
        {
            get
            {
                if (string.IsNullOrWhiteSpace(user_mids))
                {
                    return 0;
                }

                return user_mids.Split(',').Length;
            }
        }

        public string start_date { get; set; }

        public string create_time { get; set; }

        public string creator_name { get; set; }
    }
}
