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

The Photo Card puts the image front and center in the Tweet. Clicking on the photo expands it to a richer, detailed view. On twitter.com and mobile clients, the image appears below the tweet text. See https://dev.twitter.com/cards/types/photo
Inheritance: TwitterCard
Show file Open project: rabbal/Decision

Public Methods

Method Description
PhotoTwitterCard ( string username, TwitterImage image ) : System

Initializes a new instance of the PhotoTwitterCard class.

ToString ( StringBuilder stringBuilder ) : void

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

Method Details

PhotoTwitterCard() public method

Initializes a new instance of the PhotoTwitterCard class.
username or image is null.
public PhotoTwitterCard ( string username, TwitterImage image ) : System
username string The username.
image TwitterImage The image to use.
return System

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 StringBuilder The string builder.
return void