Click here to Skip to main content
11,703,632 members (69,016 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads
Add your own
alternative version

digg API.NET - C# Implementation of digg Web Services

, 5 Oct 2007 53.9K 258 29
A C# Library Interface For the Digg.com API
diggapi.zip
Properties
tester
bin
Debug
DiggAPI.dll
DiggAPI.pdb
tester.exe
tester.pdb
tester.vshost.exe
obj
Debug
ResolveAssemblyReference.cache
TempPE
tester.exe
tester.pdb
Properties
using System;
using System.Collections.Generic;
using System.Text;

namespace Baileysoft.Rss.DiggAPI
{
    /// <summary>
    /// The object representation of an article
    /// </summary>
    public class Story
    {
        #region fields
        private string id;
        private string link;
        private string submitDate;
        private string promoteDate;
        private string diggs;
        private CommentsCollection comments;
        private string commentsUrl;
        private string title;
        private string description;
        private string submitter;
        private string submitterIcon;
        private string submitterProfileViews;
        private string status;
        private string topic;
        private string container;
        #endregion fields

        #region properties
        /// <summary>
        /// Article id
        /// </summary>
        public string Id
        {
            get { return id; }
            set { id = value; }
        }
        /// <summary>
        /// Article link (external)
        /// </summary>
        public string Link
        {
            get { return link; }
            set { link = value; }
        }
        /// <summary>
        /// Article submission date
        /// </summary>
        public string SubmitDate
        {
            get { return submitDate; }
            set { submitDate = value; }
        }
        /// <summary>
        /// Article promotion date
        /// </summary>
        public string PromoteDate
        {
            get { return promoteDate; }
            set { promoteDate = value; }
        }
        /// <summary>
        /// Article digg count
        /// </summary>
        public string Diggs
        {
            get { return diggs; }
            set { diggs = value; }
        }
        /// <summary>
        /// Article comment count
        /// </summary>
        public CommentsCollection Comments
        {
            get { return comments; }
            set { comments = value; }
        }
        /// <summary>
        /// Article comments url href
        /// </summary>
        public string CommentsUrl
        {
            get { return commentsUrl; }
            set { commentsUrl = value; }
        }
        /// <summary>
        /// Article title
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        /// <summary>
        /// Article Summary
        /// </summary>
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        /// <summary>
        /// Submitter
        /// </summary>
        public string Submitter
        {
            get { return submitter; }
            set { submitter = value; }
        }
        /// <summary>
        /// Submitter icon url href
        /// </summary>
        public string SubmitterIcon
        {
            get { return submitterIcon; }
            set { submitterIcon = value; }
        }
        /// <summary>
        /// Submitter profile view count
        /// </summary>
        public string SubmitterProfileViews
        {
            get { return submitterProfileViews; }
            set { submitterProfileViews = value; }
        }
        /// <summary>
        /// Article popularity
        /// </summary>
        public string Status
        {
            get { return status; }
            set { status = value; }
        }
        /// <summary>
        /// Article topic category
        /// </summary>
        public string Topic
        {
            get { return topic; }
            set { topic = value; }
        }
        /// <summary>
        /// Article container
        /// </summary>
        public string Container
        {
            get { return container; }
            set { container = value; }
        }
        #endregion

        /// <summary>
        /// Builds Story Object Based on Story ID
        /// </summary>
        /// <param name="storyId">Story ID</param>
        /// <returns>Story Object</returns>
        public Story GetStoryByID(string storyId)
        {
            Story iStory = new Story();
            StoryCollection articles = new StoryCollection(ArticleType.byId, 
                                                           storyId); 
            foreach (Story aStory in articles)
            {
                iStory = aStory;
            }
            return iStory;
        }

    }
}

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

Share

About the Author

thund3rstruck
Software Developer
United States United States
I'm a typical 30 year old generation X guy that likes video games, NFL football, and comic style art. I have an insatiable passion for programming and doing what ever it takes to become a better programmer.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 5 Oct 2007
Article Copyright 2007 by thund3rstruck
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid