/// <summary> /// Initializes a new instance of the <see cref="OpenGraphRestaurant" /> 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 OpenGraphRestaurant(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="OpenGraphRestaurant" /> 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 OpenGraphRestaurant(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="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="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; }