C# Class RssStarterKit.ViewModels.MainViewModel

Inheritance: ViewModelBase
显示文件 Open project: ChrisKoenig/Windows-Phone-Starter-Kit-for-RSS

Public Methods

Method Description
BuildHtmlForSelectedItem ( ) : string

assemble an html string for the web browser to display the contents of the selected feed item

LoadState ( bool forceRefresh = false ) : void

load the settings and all the feed data from isolated storage

RefreshSelectedFeed ( ) : System.Threading.Tasks.Task

This is the workhorse of the MainViewModel, responsible for retrieving the data from the RSS feed and processing it for viewing

SaveState ( ) : void

save the settings and all the feed data to isolated storage

ShareCurrentFeedItem ( ) : void

share the current feed via the windows phone social media task

Private Methods

Method Description
DeserializeSettings ( string data ) : Settings
GetFeedDataFromReader ( XmlReader reader ) : RssFeed
GetSettingsFromConfigFile ( ) : Settings
InitializeProperties ( ) : void
LoadAtomFeed ( System.Xml.Linq.XDocument doc, RssFeed feed ) : void
LoadRssFeed ( System.Xml.Linq.XDocument doc, RssFeed feed ) : void
LoadSelectedFeed ( ) : void

refresh the selected feed from the internet

ResetFeeds ( ) : void
SerializeSettings ( Settings settings ) : string
SetMediaImage ( RssFeed feed, System.Xml.Linq.XDocument doc ) : void

Method Details

BuildHtmlForSelectedItem() public method

assemble an html string for the web browser to display the contents of the selected feed item
public BuildHtmlForSelectedItem ( ) : string
return string

LoadState() public method

load the settings and all the feed data from isolated storage
public LoadState ( bool forceRefresh = false ) : void
forceRefresh bool
return void

RefreshSelectedFeed() public method

This is the workhorse of the MainViewModel, responsible for retrieving the data from the RSS feed and processing it for viewing
public RefreshSelectedFeed ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SaveState() public method

save the settings and all the feed data to isolated storage
public SaveState ( ) : void
return void

ShareCurrentFeedItem() public method

share the current feed via the windows phone social media task
public ShareCurrentFeedItem ( ) : void
return void