public static SearchResult Map(WikipediaSearchResult wiki)
        {
            var matches = RegexOfSpanMatch.Matches(wiki.Snippet);

            return(new SearchResult
            {
                Source = "Wikipedia",
                Title = wiki.Title,
                Description = RegexOfSpanMatch.Replace(wiki.Snippet, "$1"),
                NavigateLink = $"{wiki.PageId}"
            });
        }
Пример #2
0
 protected bool Equals(WikipediaSearchResult other)
 {
     return(string.Equals(Title, other.Title) && PageId == other.PageId && WordCount == other.WordCount && string.Equals(Snippet, other.Snippet));
 }