Files
point_of_sale/PointOfSale/Utilities/ESCPOS_NET/Printers/PrinterStatusEventArgs.cs
Bjarne Pedersen 41e23b6184 Initial commit
Initial commit til Git.
V2 er deployed
2026-06-13 17:31:50 +02:00

34 lines
1002 B
C#

using System;
namespace ESCPOS_NET
{
public class PrinterStatusEventArgs : EventArgs
{
public bool? IsWaitingForOnlineRecovery { get; set; }
public bool? IsPaperCurrentlyFeeding { get; set; }
public bool? IsPaperFeedButtonPushed { get; set; }
public bool? IsPrinterOnline { get; set; }
public bool? IsCashDrawerOpen { get; set; }
public bool? IsCoverOpen { get; set; }
public bool? IsPaperLow { get; set; }
public bool? IsPaperOut { get; set; }
public bool? IsInErrorState => (DidRecoverableErrorOccur ?? false) || (DidUnrecoverableErrorOccur ?? false) || (DidAutocutterErrorOccur ?? false) || (DidRecoverableNonAutocutterErrorOccur ?? false);
public bool? DidRecoverableErrorOccur { get; set; }
public bool? DidUnrecoverableErrorOccur { get; set; }
public bool? DidAutocutterErrorOccur { get; set; }
public bool? DidRecoverableNonAutocutterErrorOccur { get; set; }
}
}