protected void PrintCommand(string name, string input, string output, SEPCommand.SEPCommandResponse response) { ConsoleWriter.Instance.PrintSplitter(); ConsoleWriter.Instance.PrintCommand(name, input, output); ConsoleWriter.Instance.PrintMessage("Command response: \n\treturnCode = " + response.ReturnCode); }
private void PrintDetailedResponse(SEPCommand.SEPCommandResponse response) { var readDataResponse = response as SEPDESFireReadData.SEPDESFireReadDataResponse; if (readDataResponse != null) { ConsoleWriter.Instance.PrintMessage("\tdata = " + readDataResponse.DataHexString); } else { ConsoleWriter.Instance.PrintError("response was empty"); } }
private void PrintDetailedResponse(SEPCommand.SEPCommandResponse response) { var readPACSDataResponse = response as SEPReadPACSData.SEPReadPACSDataResponse; if (readPACSDataResponse != null) { ConsoleWriter.Instance.PrintMessage("\tcontentElementData = " + readPACSDataResponse.ContentElementData); ConsoleWriter.Instance.PrintMessage("\tsecureObjectOID = " + readPACSDataResponse.SecureObjectOID); ConsoleWriter.Instance.PrintMessage("\tmediaType = " + readPACSDataResponse.MediaType); } else { ConsoleWriter.Instance.PrintError("response was empty"); } }