Saturday, June 24, 2006

Working with Feeds

The IFeed interface exposes the required and optional elements of an RSS feed. To subscribe to a feed, merely assign it to a folder.

Below are the methods and properties that are used to manage the feeds.

Feeds
FeedsManager.GetFeed(path):IFeed,Returns specific feed, by feed list path.
FeedFolder.GetFeedByUrl(url):IFeed,Returns specific feed, if subscribed, by URL.
FeedFolder.GetFeed(name):IFeed,Returns specific feed by name.
FeedFolder.Feeds:IFeedsEnum,Returns collection of feeds.
Feed.Name:String,Returns the name of the feed.
Feed.Parent:IFeedFolder,Returns the parent folder of the feed.
Feed.Path:String,Returns the feed list path of the feed.

Feed Existence
FeedsManager.ExistsFeed(path):Boolean,Returns true if feed exists.
FeedFolder.ExistsFeed(name):Boolean,Returns true if feed exists.
FeedsManager.IsSubscribed(url):Boolean,Returns true if a feed subscription exists.

Create, Delete, Move, Rename Feeds
FeedFolder.CreateFeed(name,url):IFeed,Creates feed in folder and subscribes to it.
FeedsManager.DeleteFeed(path):Deletes the feed.
Feed.Delete:Deletes the feed.
Feed.Move(path):Moves the feed.
Feed.Rename(name):Renames the feed.

No comments: