#ifndef __THERMALPRINT_DEF_G_H #define __THERMALPRINT_DEF_G_H #pragma once // This code is generated by spgen tool! #include "SpHelper.h" namespace ThermalPrint { // // const goes here // #define ThermalPrintService_Method_DoPrint 0 #define ThermalPrintService_Method_PrinterStatus 1 #define ThermalPrintService_Method_PrintEntityStatus 2 #define ThermalPrintService_MethodSignature_DoPrint 1114050611 #define ThermalPrintService_MethodSignature_PrinterStatus -513392423 #define ThermalPrintService_MethodSignature_PrintEntityStatus 709479848 struct ThermalPrintService_DoPrint_Req { CSimpleStringW uuid; CSimpleStringW print_data; int paper_type; int paper_width; int reserve1; CSimpleStringW reserve2; void Serialize(SpBuffer &Buf) { auto & buf = Buf & uuid & print_data & paper_type & paper_width & reserve1 & reserve2; } }; struct ThermalPrintService_DoPrint_Ans { CSimpleStringW error_code; CSimpleStringW error_msg; void Serialize(SpBuffer &Buf) { auto & buf = Buf & error_code & error_msg; } }; struct ThermalPrintService_PrinterStatus_Req { void Serialize(SpBuffer &Buf) { } }; struct ThermalPrintService_PrinterStatus_Ans { int print_status; CSimpleStringW status_msg; void Serialize(SpBuffer &Buf) { auto & buf = Buf & print_status & status_msg; } }; struct ThermalPrintService_PrintEntityStatus_Req { void Serialize(SpBuffer &Buf) { } }; struct ThermalPrintService_PrintEntityStatus_Ans { bool isSupportPrint; bool isPrinting; void Serialize(SpBuffer &Buf) { auto & buf = Buf & isSupportPrint & isPrinting; } }; /////////////////////////// } // namespace ThermalPrint #endif // __THERMALPRINT_DEF_G_H