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); }
/// <summary> /// 将当前楼层从外呼列表中清除 /// </summary> public void RemoveFromReachList() { ReachList.RemoveAll(x => x.Floor == CurrentFloor && x.Direction == Direction); }
public void AddReachList(OutsideCall[] floors) { ReachList.AddRange(floors.Except(ReachList)); }
public void SetReachList(OutsideCall[] floors) { ReachList.Clear(); ReachList.AddRange(floors); }