/// <summary> /// 将对象添加到结尾处。 /// </summary> /// <param name="passWay">路径</param> /// <param name="voucher">凭证:标签号或车牌号</param> /// <param name="isFromDevice">来自设备</param> public void Enqueue(ePassWay passWay, string voucher, bool isFromDevice) { if (Queuer.Any(a => a.Voucher == voucher)) { return; } Queuer.Enqueue(new ImperfectCar(passWay, voucher, isFromDevice)); }
public ImperfectCar(ePassWay passWay, string voucher, bool isFromDevice) { this.passWay = passWay; this.voucher = voucher; this.isFromDevice = isFromDevice; }