예제 #1
0
        private IEnumerable <SearchResult> ParseResults(string xml, SearchItem item)
        {
            var doc       = XDocument.Parse(xml);
            var converter = new TwitterSearchAtomConverter(doc, item);

            return(converter.Convert());
        }
        private void RaiseCompleteEvent(SearchItem item)
        {
            var asm = Assembly.GetExecutingAssembly();
            var stream = asm.GetManifestResourceStream(_resourceName);

            if (stream != null && SearchComplete != null)
            {
                var doc = XDocument.Load(XmlReader.Create(stream));
                var converter = new TwitterSearchAtomConverter(doc, item);
                SearchComplete(this, new SearchCompleteEventArgs() { Results = converter.Convert().ToList()} );
            }
        }
 private IEnumerable<SearchResult> ParseResults(string xml, SearchItem item)
 {
     var doc = XDocument.Parse(xml);
     var converter = new TwitterSearchAtomConverter(doc, item);
     return converter.Convert();
 }