C# 클래스 RssStarterKit.ViewModels.MainViewModel

상속: ViewModelBase
파일 보기 프로젝트 열기: ChrisKoenig/Windows-Phone-Starter-Kit-for-RSS

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BuildHtmlForSelectedItem() 공개 메소드

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

LoadState() 공개 메소드

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

RefreshSelectedFeed() 공개 메소드

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
리턴 System.Threading.Tasks.Task

SaveState() 공개 메소드

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

ShareCurrentFeedItem() 공개 메소드

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