Пример #1
0
        public override void handleCommand(string command, string[] arguments, ref TvControl.User me)
        {
            int           cardID  = -1;
            List <string> results = new List <string>();

            try
            {
                if (arguments != null)
                {
                    cardID = Int32.Parse(arguments[0]);
                }
                else
                {
                    cardID = me.CardId;
                }

                TVServerController server = TVServerConnection.GetServerInterface();
                int level   = server.GetSignalLevel(cardID);
                int quality = server.GetSignalQuality(cardID);

                writer.write(level.ToString() + "|" + quality.ToString());
            }
            catch
            {
                Console.WriteLine(getCommandToHandle() + ": failed");
                writer.write("");
            }
            //getConnection().WriteLine("[ERROR]: Expected format: " + getCommandToHandle() + "[:cardID]");
        }