/// <summary> /// Write the packet response to the screen space. Including the session id, /// action performed, any packet data, and the response text from the server. /// </summary> /// <param name="packet"></param> protected void WriteResponse(ResponsePacket packet) { if (packet == null) { throw new ArgumentNullException("packet", "Response packet was null for reading."); } // Write the response packet to the screen buffer. tui.WriteLine("\n \n \t[Response]"); tui.WriteLine(packet.ToString()); tui.WriteLine("\n \nPress any to continue.", TextUI.TextUIJustify.CENTER); // Set the footer message. tui.Footer = " " + packet.Response() + " "; // Refresh the screen to see what our response was. tui.Refresh(); //Wait for any single key to be pressed by the user. if (!isFake) { Console.ReadKey(); } return; }