C# Class Decision.Common.Twitter.Cards.SummaryTwitterCard

The Summary Card can be used for many kinds of web content, from blog posts and news articles, to products and restaurants. It is designed to give the reader a preview of the content before clicking through to your website. See https://dev.twitter.com/cards/types/summary.
Inheritance: TwitterCard
Show file Open project: rabbal/Decision

Public Methods

Method Description
SummaryTwitterCard ( string username ) : System.Text

Initializes a new instance of the SummaryTwitterCard class.

ToString ( StringBuilder stringBuilder ) : void

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Twitter card meta tags.

Method Details

SummaryTwitterCard() public method

Initializes a new instance of the SummaryTwitterCard class.
username is null.
public SummaryTwitterCard ( string username ) : System.Text
username string The Twitter username associated with the page e.g. @RehanSaeedUK. This is a required property.
return System.Text

ToString() public method

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Twitter card meta tags.
public ToString ( StringBuilder stringBuilder ) : void
stringBuilder System.Text.StringBuilder The string builder.
return void