public static void DisplayTable(string label, IMetaDataResponse response, int maxCols, int maxRows = 0) { if (label != null) { Console.WriteLine($"\n{label}"); } if (response.IsSuccess) { if (!FormatTable(response.Data.Table, maxCols, maxRows)) { Console.WriteLine($"Response contains an empty data set: {response.Data?.Raw}"); } } else { Console.WriteLine($"IsSuccess: {response.IsSuccess}\n{response.HttpStatus}"); } Console.Write("\nHit <enter> to continue..."); Console.ReadLine(); }
public static void DisplayTable(string label, IMetaDataResponse response) { DisplayTable(label, response, 0); }
public static void DisplayTable(IMetaDataResponse response) { DisplayTable(null, response, 0); }