C# Class Decision.Common.Extentions.SyndicationFeedExtensions

SyndicationFeed extension methods.
Show file Open project: rabbal/Decision

Public Methods

Method Description
AddNamespace ( this feed, string namespacePrefix, string xmlNamespace ) : void

Adds a namespace to the specified feed.

AddYahooMediaNamespace ( this feed ) : void

Adds the yahoo media namespace to the specified feed.

GetIcon ( this feed ) : string

Gets the icon URL for the feed.

SetIcon ( this feed, string iconUrl ) : void

Sets the icon URL for the feed.

SetThumbnail ( this item, string url, int width, int height ) : void

Sets the Yahoo Media thumbnail for the feed entry.

Method Details

AddNamespace() public static method

Adds a namespace to the specified feed.
public static AddNamespace ( this feed, string namespacePrefix, string xmlNamespace ) : void
feed this The syndication feed.
namespacePrefix string The namespace prefix.
xmlNamespace string The XML namespace.
return void

AddYahooMediaNamespace() public static method

Adds the yahoo media namespace to the specified feed.
public static AddYahooMediaNamespace ( this feed ) : void
feed this The syndication feed.
return void

GetIcon() public static method

Gets the icon URL for the feed.
public static GetIcon ( this feed ) : string
feed this The syndication feed.
return string

SetIcon() public static method

Sets the icon URL for the feed.
public static SetIcon ( this feed, string iconUrl ) : void
feed this The syndication feed.
iconUrl string The icon URL.
return void

SetThumbnail() public static method

Sets the Yahoo Media thumbnail for the feed entry.
public static SetThumbnail ( this item, string url, int width, int height ) : void
item this The feed entry.
url string The thumbnail URL.
width int The optional width of the thumbnail image.
height int The optional height of the thumbnail image.
return void