Esempio n. 1
0
        public PrinterStatusFlags(Response response)
        {
            var flags = (Byte)response.GetInt32(0);

            this.HasPrinterErrors = flags != 0;
            this.PrinterNotReady = (flags & 0x01) == 0x01;
            this.OutOfPaper = (flags & 0x02) == 0x02;
            this.CoverOpened = (flags & 0x04) == 0x04;
            this.CutterError = (flags & 0x08) == 0x08;
            this.ConnectionError = (flags & 0x80) == 0x80;
        }
Esempio n. 2
0
 public EcrStatusFlags(Response response)
 {
     this.FatalStatus = new FatalStatus((Byte)response.GetInt32(0));
     this.CurrentStatus = new CurrentStatus((UInt16)response.GetInt32(1));
     this.DocumentStatus = new DocumentStatus((Byte)response.GetInt32(2));
 }