C# Class TwitterFeed.TwitterFeedModule

显示文件 Open project: MonoSoftware/MonoX-Twitter-Module

Public Properties

Property Type Description
TwitterFeedPageNo UrlParam

Protected Properties

Property Type Description
TweetsCacheKey string
lvItems global::System.Web.UI.WebControls.ListView
pager global::MonoSoftware.Web.Pager.Pager
pnlContainer global::System.Web.UI.WebControls.Panel

Private Properties

Property Type Description
ApplyChanges void
pager_PageIndexChanged void

Public Methods

Method Description
DataBind ( ) : void
LoadFrom ( String url ) : SyndicationFeed

Loads feed from the specified URL.

TwitterFeedModule ( ) : System

Constructor.

Protected Methods

Method Description
HtmlFormatTweet ( string item ) : string

Format the Tweet and prepare it for Html rendering.

Page_Init ( object sender, EventArgs e ) : void
Page_PreRender ( object sender, EventArgs e ) : void
ParseTemplateTags ( SyndicationItem listItem ) : Hashtable
lvItems_OnItemDataBound ( object sender, ListViewItemEventArgs e ) : void

Private Methods

Method Description
ApplyChanges ( ) : void
pager_PageIndexChanged ( object source, MonoSoftware e ) : void

Method Details

DataBind() public method

public DataBind ( ) : void
return void

HtmlFormatTweet() protected method

Format the Tweet and prepare it for Html rendering.
protected HtmlFormatTweet ( string item ) : string
item string Tweet content
return string

LoadFrom() public static method

Loads feed from the specified URL.
public static LoadFrom ( String url ) : SyndicationFeed
url String URL of the feed.
return SyndicationFeed

Page_Init() protected method

protected Page_Init ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Page_PreRender() protected method

protected Page_PreRender ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

ParseTemplateTags() protected method

protected ParseTemplateTags ( SyndicationItem listItem ) : Hashtable
listItem SyndicationItem
return Hashtable

TwitterFeedModule() public method

Constructor.
public TwitterFeedModule ( ) : System
return System

lvItems_OnItemDataBound() protected method

protected lvItems_OnItemDataBound ( object sender, ListViewItemEventArgs e ) : void
sender object
e ListViewItemEventArgs
return void

Property Details

TweetsCacheKey protected_oe static_oe property

Tweets cache key.
protected static string TweetsCacheKey
return string

TwitterFeedPageNo public_oe static_oe property

Twitter Feed SEO pager page number query string name.
public static UrlParam TwitterFeedPageNo
return UrlParam

lvItems protected_oe property

lvItems control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ListView lvItems
return global::System.Web.UI.WebControls.ListView

pager protected_oe property

pager control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::MonoSoftware.Web.Pager.Pager pager
return global::MonoSoftware.Web.Pager.Pager

pnlContainer protected_oe property

pnlContainer control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel pnlContainer
return global::System.Web.UI.WebControls.Panel