C# Class TwitterFeed.TwitterFeedModule

Show file 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 static property

Tweets cache key.
protected static string TweetsCacheKey
return string

TwitterFeedPageNo public static property

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

lvItems protected 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 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 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