using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Holo.Managers; using Holo.Virtual.Users; using Ion.Storage; namespace Holo { class ConsoleCommands { public static void ReadCommand(string command) { string[] args = command.Split(' '); string Command = args[0]; switch (args[0]) { case "ha": case "hotelalert": { try { userManager.sendData("BK" + command.Substring(args[0].Length)); Out.WriteLine("Hotel alert sent!"); } catch (Exception x) { Out.WriteError("An error occured: " + x.Message); } break; } } TextReader In = Console.In; ReadCommand(In.ReadLine()); } } }