Beispiel #1
0
        public string GetStatusMsg()
        {
            string str = $"状态:{Status} 人数:{PersonList.Count}";

            str += $" 内呼:{string.Join(" ", PersonList.Select(x => x.ToFloor).Distinct())}";
            str += $" 外呼:{string.Join(" ", ReachList.GroupBy(x => new { x.Floor, x.Direction }).Select(x => x.Key.Floor))}";
            return(str);
        }
Beispiel #2
0
 /// <summary>
 /// 将当前楼层从外呼列表中清除
 /// </summary>
 public void RemoveFromReachList()
 {
     ReachList.RemoveAll(x => x.Floor == CurrentFloor && x.Direction == Direction);
 }
Beispiel #3
0
 public void AddReachList(OutsideCall[] floors)
 {
     ReachList.AddRange(floors.Except(ReachList));
 }
Beispiel #4
0
 public void SetReachList(OutsideCall[] floors)
 {
     ReachList.Clear();
     ReachList.AddRange(floors);
 }