msg property
String
get
msg
Implementation
String get msg {
if (value == ConnectionResponse.success.value) {
return 'Success';
} else if (value == ConnectionResponse.timeout.value) {
return 'Error. Printer connection timeout';
} else if (value == ConnectionResponse.printerNotSelected.value) {
return 'Error. Printer not selected';
} else if (value == ConnectionResponse.printerNotConnected.value) {
return 'Error. Printer not connected';
} else if (value == ConnectionResponse.ticketEmpty.value) {
return 'Error. Ticket is empty';
} else if (value == ConnectionResponse.printInProgress.value) {
return 'Error. Another print in progress';
} else if (value == ConnectionResponse.scanInProgress.value) {
return 'Error. Printer scanning in progress';
} else if (value == ConnectionResponse.unknown.value) {
return 'Unknown error';
} else if (value == ConnectionResponse.unsupport.value) {
return 'Unsupport platform';
} else if (value == ConnectionResponse.printerNotWritable.value) {
return 'Printer not writable';
} else {
return 'Unknown error';
}
}