/// <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="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="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;
        }
 public OpenGraphFoundationPageData(string title, OpenGraphImage image, string url = null) : base(title, image, url)
 {
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphProfile"/> 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 OpenGraphProfile(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)
 {
 }
 public OpenGraphGenericNode(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)
 {
 }
 public OpenGraphHomePage(string title, OpenGraphImage image, string url = null) : base(title, image, url)
 {
 }
Exemple #10
0
 /// <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="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphWebsite(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
 public OpenGraphLocationItemPage(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;
 }
Exemple #13
0
 /// <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="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 &amp; Lesbian, Graphic Novels, Historical Fiction, Horror, Fiction &amp; Literature, Mystery, Mythology &amp; Folklore, Poetry, Religious &amp; Inspiratonal, Rhetoric &amp; Critcism, Romance, Satire &amp; Humor, Science Fiction, Thrillers &amp; Suspense, Westerns, Women&#039;s Fiction, Young Adult Fiction, Biography &amp; Memoir, Current Affairs &amp; 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&#039;s Non-fiction, Computer Science, Encyclopedias, General Collections, Gift Books, Information Sciences, Journalism &amp; Publishing, Magazines &amp; Journals, Manuscripts &amp; Rare Books, Epistemology, Ethics, Logic, Metaphysics, Philosophy, Parapsychology &amp; Occultism, Psychology, Self-help, Bible, Comparative Religions, Natural Theory, Theology, Business, Customs &amp; Etiquette, Economics, Education, Finance, Gay &amp; Lesbian Non-Fiction, Gender Studies, Law, Political Science, Social Sciences, Social Services, Statistics, True Crime, English &amp; Old English, French, German, Greek, Italian, Language, Latin, Linguistics, Other Languages, Portugese, Spanish, Astronomy, Chemistry, Earth Sciences, Life Sciences, Mathematics, Paleontology &amp; Paleozoology, Physics, Plants Sciences, Zoology, Agriculture, Chemical Engineering, Engineering &amp; Opera?ons, Management, Manufacturing, Medical Sciences, Technology, Cooking &amp; 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="OpenGraphBooksAuthor"/> 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 OpenGraphBooksAuthor(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphVideoTvShow"/> 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 OpenGraphVideoTvShow(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
Exemple #17
0
 /// <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)
 {
 }
Exemple #18
0
 /// <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="OpenGraphWebsite"/> 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 OpenGraphWebsite(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }