示例#1
0
 public void send(string user, string message)
 {
     Clients.All.broadcastMessage(user, message);
     if (message.Contains("/stock="))
     {
         string[] codeS      = message.Split('=');
         string   stock_code = codeS[1];
         GetStock getStock   = new GetStock();
         string   resBot     = getStock.GetBotMessageStock(stock_code);
         Clients.All.broadcastMessage("Stock BOT", resBot);
     }
 }
示例#2
0
        public string GetValueStock(string stock_code)
        {
            GetStock getStock = new GetStock();

            return(getStock.GetBotMessageStock(stock_code));
        }