C# Class RssStarterKit.ViewModels.MainViewModel

Inheritance: ViewModelBase
Afficher le fichier Open project: ChrisKoenig/Windows-Phone-Starter-Kit-for-RSS

Méthodes publiques

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

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

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

LoadState() public méthode

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

RefreshSelectedFeed() public méthode

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
Résultat System.Threading.Tasks.Task

SaveState() public méthode

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

ShareCurrentFeedItem() public méthode

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