using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; /* Copyright (C) Hannon Hill Corporation, hannonhill.com, August 2006 This is a script from hannonhill.com. You will find this and many other scripts at our website as part of our content management system. Terms of use: You are free to use this script as long as the copyright message is kept intact. However, you may not redistribute, sell or repost it without our permission. There are no warranties and you use it at your own risk. */ /// /// Summary description for SearchResult /// public class SearchResult : IComparable { private long _keywordCount = 0; private string _pagePath; private long _lastModified; private string _pageContent; public SearchResult(string pagePath, long keywordCount, long lastModified, string pageContent) { _pagePath = pagePath; _keywordCount = keywordCount; _lastModified = lastModified; _pageContent = pageContent; } public int CompareTo(object obj) { if (obj is SearchResult) { SearchResult result = (SearchResult)obj; return result.KeywordCount.CompareTo(_keywordCount); } throw new ArgumentException("object is not a SearchResult"); } public long KeywordCount { get { return _keywordCount; } } public string PageContent { get { return _pageContent; } } }