A location specified by latitude and longitude.
コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: OpenGraphBusiness.cs プロジェクト: rabbal/Decision
        /// <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;
        }