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

The Gallery Card allows you to represent collections of photos within a Tweet. This Card type is designed to let the user know that there’s more than just a single image at the URL shared, but rather a gallery of related images. You can specify up to 4 different images to show in the gallery card. You can also provide attribution to the photographer of the gallery by specifying the value of the creator tag. See https://dev.twitter.com/cards/types/gallery.
Inheritance: TwitterCard
Show file Open project: rabbal/Decision

Public Methods

Method Description
GalleryTwitterCard ( string username, TwitterImage image0, TwitterImage image1, TwitterImage image2, TwitterImage image3 ) : System

Initializes a new instance of the GalleryTwitterCard class.

ToString ( StringBuilder stringBuilder ) : void

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

Method Details

GalleryTwitterCard() public method

Initializes a new instance of the GalleryTwitterCard class.
username or image0 or image1 or image2 or image3 is null.
public GalleryTwitterCard ( string username, TwitterImage image0, TwitterImage image1, TwitterImage image2, TwitterImage image3 ) : System
username string The Twitter username of the creator of the content on the page e.g. @RehanSaeedUK. This is an optional property.
image0 TwitterImage The image0.
image1 TwitterImage The image1.
image2 TwitterImage The image2.
image3 TwitterImage The image3.
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