/// <summary> /// Initializes a new instance of the <see cref="OpenGraphRestaurantMenuItem" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="sectionUrl">The URL to the page about the section this menu item is from. This URL must contain profile meta tags <see cref="OpenGraphResterauntMenuSection"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphRestaurantMenuItem(string title, OpenGraphImage image, string sectionUrl, string url = null) : base(title, image, url) { if (sectionUrl == null) { throw new ArgumentNullException("sectionUrl"); } this._sectionUrl = sectionUrl; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphRestaurantMenuSection" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="menuUrl">The URL to the page about the menu this section is from. This URL must contain profile meta tags <see cref="OpenGraphResterauntMenu"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphRestaurantMenuSection(string title, OpenGraphImage image, string menuUrl, string url = null) : base(title, image, url) { if (menuUrl == null) { throw new ArgumentNullException("menuUrl"); } this._menuUrl = menuUrl; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphResterauntMenu" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="resterauntUrl">The URL to the page about the resteraunt who wrote the menu. This URL must contain profile meta tags <see cref="OpenGraphResteraunt"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphResterauntMenu(string title, OpenGraphImage image, string resterauntUrl, string url = null) : base(title, image, url) { if (resterauntUrl == null) { throw new ArgumentNullException("resterauntUrl"); } this._resterauntUrl = resterauntUrl; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphResteraunt" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="location">The location of the business.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphResteraunt(string title, OpenGraphImage image, OpenGraphLocation location, string url = null) : base(title, image, url) { if (location == null) { throw new ArgumentNullException("location"); } this._location = location; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphMusicSong"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="albumUrls">The URL's to the pages about the album the song comes from. This URL's must contain profile meta tags <see cref="OpenGraphMusicAlbum"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphMusicSong(string title, OpenGraphImage image, IEnumerable<string> albumUrls, string url = null) : base(title, image, url) { if (albumUrls == null) { throw new ArgumentNullException("albumUrls"); } this._albumUrls = albumUrls; this.AlbumDisc = 1; this.AlbumTrack = 1; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphBusiness" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="contactData">The contact data for the business.</param> /// <param name="location">The location of the business.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">contactData or location is <c>null</c>.</exception> public OpenGraphBusiness(string title, OpenGraphImage image, OpenGraphContactData contactData, OpenGraphLocation location, string url = null) : base(title, image, url) { if (contactData == null) { throw new ArgumentNullException("contactData"); } if (location == null) { throw new ArgumentNullException("location"); } this._location = location; this._contactData = contactData; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphProductItem" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="availability">The availability of the item, one of 'instock', 'oos', or 'pending'.</param> /// <param name="condition">The condition of the item, one of 'new', 'refurbished', or 'used'.</param> /// <param name="prices">The prices of the item.</param> /// <param name="retailerItemId">The retailer's ID for the item.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">prices or retailerItemId is <c>null</c>.</exception> public OpenGraphProductItem( string title, OpenGraphImage image, OpenGraphAvailability availability, OpenGraphCondition condition, IEnumerable<OpenGraphCurrency> prices, string retailerItemId, string url = null) : base(title, image, url) { if (prices == null) { throw new ArgumentNullException("prices"); } if (retailerItemId == null) { throw new ArgumentNullException("retailerItemId"); } this._availability = availability; this._condition = condition; this._prices = prices; this._retailerItemId = retailerItemId; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphMetadata" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> /// <exception cref="System.ArgumentNullException">title or image is <c>null</c>.</exception> public OpenGraphMetadata(string title, OpenGraphImage image, string url = null) { if (title == null) { throw new ArgumentNullException("title"); } if (image == null) { throw new ArgumentNullException("image"); } if (url == null) { url = HttpContext.Current.Request.Url.ToString(); } this._title = title; this._url = url; this._media = new List<OpenGraphMedia>(); this._media.Add(image); }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphProductGroup" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphProductGroup(string title, OpenGraphImage image, string url = null) : base(title, image, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphFitnessCourse" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphFitnessCourse(string title, OpenGraphImage image, string url = null) : base(title, image, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphBook"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphBook(string title, OpenGraphImage image, string url = null) : base(title, image, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphVideoEpisode"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphVideoEpisode(string title, OpenGraphImage image, string url = null) : base(title, image, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphBooksBook" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="isbn">The books unique ISBN number.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphBooksBook(string title, OpenGraphImage image, string isbn, string url = null) : base(title, image, url) { this._isbn = isbn; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphBooksGenre"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="canonicalName">THe genres canonical name. Only one of the following names is allowed Adventure, Children's Fiction, Drama, Erotica, Essays, Fantasy, Gay & Lesbian, Graphic Novels, Historical Fiction, Horror, Fiction & Literature, Mystery, Mythology & Folklore, Poetry, Religious & Inspiratonal, Rhetoric & Critcism, Romance, Satire & Humor, Science Fiction, Thrillers & Suspense, Westerns, Women's Fiction, Young Adult Fiction, Biography & Memoir, Current Affairs & Politics, Genealogy, Geography, History, History of the Ancient World, History of Africa, History of Asia, History of Europe, History of North America, History of South America, Travel, Bibliographies, Children's Non-fiction, Computer Science, Encyclopedias, General Collections, Gift Books, Information Sciences, Journalism & Publishing, Magazines & Journals, Manuscripts & Rare Books, Epistemology, Ethics, Logic, Metaphysics, Philosophy, Parapsychology & Occultism, Psychology, Self-help, Bible, Comparative Religions, Natural Theory, Theology, Business, Customs & Etiquette, Economics, Education, Finance, Gay & Lesbian Non-Fiction, Gender Studies, Law, Political Science, Social Sciences, Social Services, Statistics, True Crime, English & Old English, French, German, Greek, Italian, Language, Latin, Linguistics, Other Languages, Portugese, Spanish, Astronomy, Chemistry, Earth Sciences, Life Sciences, Mathematics, Paleontology & Paleozoology, Physics, Plants Sciences, Zoology, Agriculture, Chemical Engineering, Engineering & Opera?ons, Management, Manufacturing, Medical Sciences, Technology, Cooking & Cookbooks, Gardening, Home Decorating, Home Economics, Parenting, Pets, Architecture, Design, Drawing, Fine Art, Gardening, Graphic Art, Music, Painting, Performing Arts, Photography, Sculpture, Games, Fitness, Health and Sports.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphBooksGenre(string title, OpenGraphImage image, string canonicalName, string url = null) : base(title, image, url) { this._canonicalName = canonicalName; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphGameAchievement" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="points">The relative importance and scarcity of the achievement.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphGameAchievement(string title, OpenGraphImage image, int points, string url = null) : base(title, image, url) { this._points = points; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphMusicRadioStation"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="image">The default image.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param> public OpenGraphMusicRadioStation(string title, OpenGraphImage image, string url = null) : base(title, image, url) { }