private string StatusToMachineStateId(MedicalScannerStatus status) { switch (status) { case Off: return("closed"); case Open: return("open"); case Red: return("occupied"); case Death: return("occupied"); case Green: return("occupied"); case Yellow: return("occupied"); default: throw new ArgumentOutOfRangeException(nameof(status), status, "unknown MedicalScannerStatus"); } }
private string StatusToTerminalStateId(MedicalScannerStatus status) { switch (status) { case Off: return("off_unlit"); case Open: return("idle_unlit"); case Red: return("red_unlit"); case Death: return("off_unlit"); case Green: return("idle_unlit"); case Yellow: return("maint_unlit"); default: throw new ArgumentOutOfRangeException(nameof(status), status, "unknown MedicalScannerStatus"); } }
private string StatusToTerminalStateId(MedicalScannerStatus status) { switch (status) { case Off: return("scanner_terminal_off"); case Open: return("scanner_terminal_blue"); case Red: return("scanner_terminal_red"); case Death: return("scanner_terminal_dead"); case Green: return("scanner_terminal_green"); case Yellow: return("scanner_terminal_blue"); default: throw new ArgumentOutOfRangeException(nameof(status), status, "unknown MedicalScannerStatus"); } }