/// <summary> /// Initializes a new instance of the <see cref="OpenGraphPlace" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphPlace(string title, OpenGraphImage mainImage, OpenGraphLocation location, string url = null) : base(title, mainImage, url) { if (location == null) { throw new ArgumentNullException(nameof(location)); } this.Location = location; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphRestaurantMenuItem(string title, OpenGraphImage mainImage, string sectionUrl, string url = null) : base(title, mainImage, url) { if (sectionUrl == null) { throw new ArgumentNullException(nameof(sectionUrl)); } this.SectionUrl = sectionUrl; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphBooksBook(string title, OpenGraphImage mainImage, string isbn, string url = null) : base(title, mainImage, url) { if (isbn == null) { throw new ArgumentNullException(nameof(isbn)); } this.ISBN = isbn; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">title or image is <c>null</c>.</exception> public OpenGraphMetadata(string title, OpenGraphImage mainImage, string url = null) { if (title == null) { throw new ArgumentNullException(nameof(title)); } if (mainImage == null) { throw new ArgumentNullException(nameof(mainImage)); } this.MainImage = mainImage; this.Title = title; this.Url = url; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphRestaurantMenu" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="restaurantUrl">The URL to the page about the restaurant 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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception> public OpenGraphRestaurantMenu(string title, OpenGraphImage mainImage, string restaurantUrl, string url = null) : base(title, mainImage, url) { if (restaurantUrl == null) { throw new ArgumentNullException(nameof(restaurantUrl)); } this.RestaurantUrl = restaurantUrl; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphMusicPlaylist"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="songUrls">The URL's to the pages about the songs on this playlist. This URL must contain profile meta tags <see cref="OpenGraphMusicSong"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphMusicPlaylist(string title, OpenGraphImage mainImage, IEnumerable<string> songUrls, string url = null) : base(title, mainImage, url) { if (songUrls == null) { throw new ArgumentNullException(nameof(songUrls)); } this.SongUrls = songUrls; this.SongDisc = 1; this.SongTrack = 1; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphMusicSong(string title, OpenGraphImage mainImage, IEnumerable<string> albumUrls, string url = null) : base(title, mainImage, url) { if (albumUrls == null) { throw new ArgumentNullException(nameof(albumUrls)); } this.AlbumUrls = albumUrls; this.AlbumDisc = 1; this.AlbumTrack = 1; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphMusicPlaylist"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="songUrls">The URL's to the pages about the songs on this playlist. This URL must contain profile meta tags <see cref="OpenGraphMusicSong"/>.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphMusicPlaylist(string title, OpenGraphImage mainImage, IEnumerable <string> songUrls, string url = null) : base(title, mainImage, url) { if (songUrls == null) { throw new ArgumentNullException(nameof(songUrls)); } this.SongUrls = songUrls; this.SongDisc = 1; this.SongTrack = 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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">contactData or location is <c>null</c>.</exception> public OpenGraphBusiness(string title, OpenGraphImage mainImage, OpenGraphContactData contactData, OpenGraphLocation location, string url = null) : base(title, mainImage, url) { if (contactData == null) { throw new ArgumentNullException(nameof(contactData)); } if (location == null) { throw new ArgumentNullException(nameof(location)); } this.ContactData = contactData; this.Location = location; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">prices or retailerItemId is <c>null</c>.</exception> public OpenGraphProductItem( string title, OpenGraphImage mainImage, OpenGraphAvailability availability, OpenGraphCondition condition, IEnumerable<OpenGraphCurrency> prices, string retailerItemId, string url = null) : base(title, mainImage, url) { if (prices == null) { throw new ArgumentNullException(nameof(prices)); } if (retailerItemId == null) { throw new ArgumentNullException(nameof(retailerItemId)); } this.Availability = availability; this.Condition = condition; this.Prices = prices; this.RetailerItemId = retailerItemId; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> /// <exception cref="System.ArgumentNullException">prices or retailerItemId is <c>null</c>.</exception> public OpenGraphProductItem( string title, OpenGraphImage mainImage, OpenGraphAvailability availability, OpenGraphCondition condition, IEnumerable <OpenGraphCurrency> prices, string retailerItemId, string url = null) : base(title, mainImage, url) { if (prices == null) { throw new ArgumentNullException(nameof(prices)); } if (retailerItemId == null) { throw new ArgumentNullException(nameof(retailerItemId)); } this.Availability = availability; this.Condition = condition; this.Prices = prices; this.RetailerItemId = retailerItemId; }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphProduct" /> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphProduct(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphWebsite"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphWebsite(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, 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="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphVideoEpisode(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphBooksAuthor"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphBooksAuthor(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphBooksGenre(string title, OpenGraphImage mainImage, string canonicalName, string url = null) : base(title, mainImage, 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="mainImage">The main image which should represent your object within the graph. This is a required property.</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. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphGameAchievement(string title, OpenGraphImage mainImage, int points, string url = null) : base(title, mainImage, url) { this.Points = points; }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphProductGroup(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }
/// <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="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphMusicRadioStation(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }
/// <summary> /// Initializes a new instance of the <see cref="OpenGraphVideoOther"/> class. /// </summary> /// <param name="title">The title of the object as it should appear in the graph.</param> /// <param name="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphVideoOther(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, 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="mainImage">The main image which should represent your object within the graph. This is a required property.</param> /// <param name="url">The canonical URL of the object, used as its ID in the graph. Leave as <c>null</c> to get the URL of the current page.</param> public OpenGraphFitnessCourse(string title, OpenGraphImage mainImage, string url = null) : base(title, mainImage, url) { }