C# Class Decision.Common.Extentions.SyndicationFeedExtensions

SyndicationFeed extension methods.
Afficher le fichier Open project: rabbal/Decision

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

AddYahooMediaNamespace() public static méthode

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

GetIcon() public static méthode

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

SetIcon() public static méthode

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.
Résultat void

SetThumbnail() public static méthode

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.
Résultat void