Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

LINQ To Google Image and Google Groups

Rate me:
Please Sign up or sign in to vote.
5.00/5 (17 votes)
8 May 200710 min read 90.9K   400   48  
A LINQ Implementation for Google Images/Groups Search
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MChen.Linq.GoogleSearch.Common;

namespace MChen.Linq.GoogleSearch.Groups
{
    public class Message : Result
    {
        public string Subject { get; internal set; }

        public string Group {
            get { return Domain; }
        }

        public string InitialAuthor { get; internal set; }

        public DateTime PostDate { get; internal set; }

        public int Rating { get; internal set; }

        public int NumberOfReply { get; internal set; }

        public int NumberOfAuthors { get; internal set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat("{7} --> {0}\n\tRating:         {8}\n\tUrl:            {1}\n\tGroup:           " +
                            "{2}\n\tPostDate:      {3}\n\tInitial Author: {4}\n\t" +
                            "Number of Replies:         {5}\n\tSummary:         {6}",
                Subject,
                Url,
                Group,
                PostDate,
                InitialAuthor,
                NumberOfReply,
                Description,
                Rank,
                Rating);
            return sb.ToString();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States

Comments and Discussions