Esempio n. 1
0
        public string Call(string pCommand, ChatMessage pMsg)
        {
            var uris = _httpHelper.ExtractUris(pCommand).ToList();

            if (uris.Count() > 3)
            {
                return("I refuse to process more than three URLs at a time.");
            }
            return(string.Join(
                       "\n",
                       uris.Select(uri => _urlStrategyFactory.Create(uri).ExtractInformationFromUrl()).ToList()));
        }