/// <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; }