C# Class PodcastStarterKit.Services.PodcastService

Inheritance: IPodcastService
Mostra file Open project: mangu/Windows-Phone-Starter-Kit-for-Podcasts

Public Methods

Method Description
GetPodcastInformation ( ) : PodcastInformationModel
GetTwitterFeed ( ) : ObservableCollection

Protected Methods

Method Description
OnPodcastInfoLoaded ( PodcastStarterKit.ViewModels.LoadEventArgs e ) : void
OnTwitterLoaded ( PodcastStarterKit.ViewModels.LoadEventArgs e ) : void

Private Methods

Method Description
Coalesce ( ) : object

Take the first non-null, non-empty value from the list

DownloadPodcastInformationCompleted ( object sender, DownloadStringCompletedEventArgs e ) : void
ParseImageFromDescription ( string description ) : string

Pull out the first img tag we find in the html description. If not, then use a default image.

StripHtmlTags ( string value ) : string

Remove HTML tags from a given string

TwitterStatusInformationCompleted ( object sender, DownloadStringCompletedEventArgs e ) : void
getElementValue ( System.Xml.Linq.XElement element, System.Xml.Linq.XName elementName, string attributeName = "" ) : string

Look for an element and find it's value.

Method Details

GetPodcastInformation() public method

public GetPodcastInformation ( ) : PodcastInformationModel
return PodcastStarterKit.ViewModels.PodcastInformationModel

GetTwitterFeed() public method

public GetTwitterFeed ( ) : ObservableCollection
return ObservableCollection

OnPodcastInfoLoaded() protected method

protected OnPodcastInfoLoaded ( PodcastStarterKit.ViewModels.LoadEventArgs e ) : void
e PodcastStarterKit.ViewModels.LoadEventArgs
return void

OnTwitterLoaded() protected method

protected OnTwitterLoaded ( PodcastStarterKit.ViewModels.LoadEventArgs e ) : void
e PodcastStarterKit.ViewModels.LoadEventArgs
return void