private static void ShowAuthStatus(SearchClient searchClient) { if (searchClient.CheckAuthStatus()) { Prettify.WriteLine("Authentication Successful!", ConsoleColor.Green); } else { Prettify.WriteLine("Authentication Unsuccessful!", ConsoleColor.Red); } }
private static Credentials GetCredentials() { Prettify.WriteLine("Enter username: "******"> ", ConsoleColor.DarkCyan); Console.ForegroundColor = ConsoleColor.Cyan; string uName = Console.ReadLine(); Prettify.WriteLine("Enter password: "******"> ", ConsoleColor.DarkCyan); Console.ForegroundColor = ConsoleColor.Cyan; string pw = Console.ReadLine(); var creds = new Credentials(uName, pw); return(creds); }