C# Class Decision.Common.OpenGraph.ObjectTypes.Facebook.OpenGraphProductItem

This object type represents a product item. This object type is not part of the Open Graph standard but is used by Facebook. See https://developers.facebook.com/docs/reference/opengraph/object-type/product.item/
Inheritance: OpenGraphMetadata
Afficher le fichier Open project: rabbal/Decision

Méthodes publiques

Méthode Description
OpenGraphProductItem ( string title, OpenGraphImage image, OpenGraphAvailability availability, OpenGraphCondition condition, IEnumerable prices, string retailerItemId, string url = null ) : System

Initializes a new instance of the OpenGraphProductItem class.

ToString ( StringBuilder stringBuilder ) : void

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

Method Details

OpenGraphProductItem() public méthode

Initializes a new instance of the OpenGraphProductItem class.
prices or retailerItemId is null.
public OpenGraphProductItem ( string title, OpenGraphImage image, OpenGraphAvailability availability, OpenGraphCondition condition, IEnumerable prices, string retailerItemId, string url = null ) : System
title string The title of the object as it should appear in the graph.
image Decision.Common.OpenGraph.Media.OpenGraphImage The default image.
availability OpenGraphAvailability The availability of the item, one of 'instock', 'oos', or 'pending'.
condition OpenGraphCondition The condition of the item, one of 'new', 'refurbished', or 'used'.
prices IEnumerable The prices of the item.
retailerItemId string The retailer's ID for the item.
url string The canonical URL of the object, used as its ID in the graph.
Résultat System

ToString() public méthode

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Open Graph meta tags.
public ToString ( StringBuilder stringBuilder ) : void
stringBuilder StringBuilder The string builder.
Résultat void