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); } }
public string GetValueStock(string stock_code) { GetStock getStock = new GetStock(); return(getStock.GetBotMessageStock(stock_code)); }