コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the Thing class.
 /// </summary>
 /// <param name="id">A String identifier.</param>
 /// <param name="readLink">The URL that returns this resource.</param>
 /// <param name="webSearchUrl">The URL To Bing's search result for this
 /// item.</param>
 /// <param name="name">The name of the thing represented by this
 /// object.</param>
 /// <param name="url">The URL to get more information about the thing
 /// represented by this object.</param>
 /// <param name="image">An image of the item.</param>
 /// <param name="description">A short description of the item.</param>
 /// <param name="alternateName">An alias for the item</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 public Thing(string id = default(string), string readLink = default(string), string webSearchUrl = default(string), string name = default(string), string url = default(string), ImageObject image = default(ImageObject), string description = default(string), string alternateName = default(string), string bingId = default(string))
     : base(id, readLink, webSearchUrl)
 {
     Name          = name;
     Url           = url;
     Image         = image;
     Description   = description;
     AlternateName = alternateName;
     BingId        = bingId;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the ImageObject class.
 /// </summary>
 /// <param name="id">A String identifier.</param>
 /// <param name="readLink">The URL that returns this resource.</param>
 /// <param name="webSearchUrl">The URL To Bing's search result for this
 /// item.</param>
 /// <param name="name">The name of the thing represented by this
 /// object.</param>
 /// <param name="url">The URL to get more information about the thing
 /// represented by this object.</param>
 /// <param name="image">An image of the item.</param>
 /// <param name="description">A short description of the item.</param>
 /// <param name="alternateName">An alias for the item</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 /// <param name="thumbnailUrl">The URL to a thumbnail of the
 /// item.</param>
 /// <param name="provider">The source of the creative work.</param>
 /// <param name="text">Text content of this creative work</param>
 /// <param name="contentUrl">Original URL to retrieve the source (file)
 /// for the media object (e.g the source URL for the image).</param>
 /// <param name="hostPageUrl">URL of the page that hosts the media
 /// object.</param>
 /// <param name="contentSize">Size of the media object content (use
 /// format "value unit" e.g "1024 B").</param>
 /// <param name="encodingFormat">Encoding format (e.g mp3, mp4, jpeg,
 /// etc).</param>
 /// <param name="hostPageDisplayUrl">Display URL of the page that hosts
 /// the media object.</param>
 /// <param name="width">The width of the media object, in
 /// pixels.</param>
 /// <param name="height">The height of the media object, in
 /// pixels.</param>
 /// <param name="thumbnail">The URL to a thumbnail of the image</param>
 /// <param name="imageInsightsToken">The token that you use in a
 /// subsequent call to the Image Search API to get additional
 /// information about the image. For information about using this
 /// token, see the insightsToken query parameter.</param>
 /// <param name="imageId">Unique Id for the image</param>
 /// <param name="accentColor">A three-byte hexadecimal number that
 /// represents the color that dominates the image. Use the color as the
 /// temporary background in your client until the image is
 /// loaded.</param>
 /// <param name="visualWords">Visual representation of the image. Used
 /// for getting more sizes</param>
 public ImageObject(string id = default(string), string readLink = default(string), string webSearchUrl = default(string), string name = default(string), string url = default(string), ImageObject image = default(ImageObject), string description = default(string), string alternateName = default(string), string bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string), string contentUrl = default(string), string hostPageUrl = default(string), string contentSize = default(string), string encodingFormat = default(string), string hostPageDisplayUrl = default(string), int?width = default(int?), int?height = default(int?), ImageObject thumbnail = default(ImageObject), string imageInsightsToken = default(string), string imageId = default(string), string accentColor = default(string), string visualWords = default(string))
     : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, text, contentUrl, hostPageUrl, contentSize, encodingFormat, hostPageDisplayUrl, width, height)
 {
     Thumbnail          = thumbnail;
     ImageInsightsToken = imageInsightsToken;
     ImageId            = imageId;
     AccentColor        = accentColor;
     VisualWords        = visualWords;
     CustomInit();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the WebPage class.
 /// </summary>
 /// <param name="id">A String identifier.</param>
 /// <param name="readLink">The URL that returns this resource.</param>
 /// <param name="webSearchUrl">The URL To Bing's search result for this
 /// item.</param>
 /// <param name="name">The name of the thing represented by this
 /// object.</param>
 /// <param name="url">The URL to get more information about the thing
 /// represented by this object.</param>
 /// <param name="image">An image of the item.</param>
 /// <param name="description">A short description of the item.</param>
 /// <param name="alternateName">An alias for the item</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 /// <param name="thumbnailUrl">The URL to a thumbnail of the
 /// item.</param>
 /// <param name="provider">The source of the creative work.</param>
 /// <param name="text">Text content of this creative work</param>
 public WebPage(string id = default(string), string readLink = default(string), string webSearchUrl = default(string), string name = default(string), string url = default(string), ImageObject image = default(ImageObject), string description = default(string), string alternateName = default(string), string bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string))
     : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, text)
 {
     CustomInit();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the MediaObject class.
 /// </summary>
 /// <param name="id">A String identifier.</param>
 /// <param name="readLink">The URL that returns this resource.</param>
 /// <param name="webSearchUrl">The URL To Bing's search result for this
 /// item.</param>
 /// <param name="name">The name of the thing represented by this
 /// object.</param>
 /// <param name="url">The URL to get more information about the thing
 /// represented by this object.</param>
 /// <param name="image">An image of the item.</param>
 /// <param name="description">A short description of the item.</param>
 /// <param name="alternateName">An alias for the item</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 /// <param name="thumbnailUrl">The URL to a thumbnail of the
 /// item.</param>
 /// <param name="provider">The source of the creative work.</param>
 /// <param name="text">Text content of this creative work</param>
 /// <param name="contentUrl">Original URL to retrieve the source (file)
 /// for the media object (e.g the source URL for the image).</param>
 /// <param name="hostPageUrl">URL of the page that hosts the media
 /// object.</param>
 /// <param name="contentSize">Size of the media object content (use
 /// format "value unit" e.g "1024 B").</param>
 /// <param name="encodingFormat">Encoding format (e.g mp3, mp4, jpeg,
 /// etc).</param>
 /// <param name="hostPageDisplayUrl">Display URL of the page that hosts
 /// the media object.</param>
 /// <param name="width">The width of the media object, in
 /// pixels.</param>
 /// <param name="height">The height of the media object, in
 /// pixels.</param>
 public MediaObject(string id = default(string), string readLink = default(string), string webSearchUrl = default(string), string name = default(string), string url = default(string), ImageObject image = default(ImageObject), string description = default(string), string alternateName = default(string), string bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string), string contentUrl = default(string), string hostPageUrl = default(string), string contentSize = default(string), string encodingFormat = default(string), string hostPageDisplayUrl = default(string), int?width = default(int?), int?height = default(int?))
     : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, text)
 {
     ContentUrl         = contentUrl;
     HostPageUrl        = hostPageUrl;
     ContentSize        = contentSize;
     EncodingFormat     = encodingFormat;
     HostPageDisplayUrl = hostPageDisplayUrl;
     Width  = width;
     Height = height;
     CustomInit();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the CreativeWork class.
 /// </summary>
 /// <param name="id">A String identifier.</param>
 /// <param name="readLink">The URL that returns this resource.</param>
 /// <param name="webSearchUrl">The URL To Bing's search result for this
 /// item.</param>
 /// <param name="name">The name of the thing represented by this
 /// object.</param>
 /// <param name="url">The URL to get more information about the thing
 /// represented by this object.</param>
 /// <param name="image">An image of the item.</param>
 /// <param name="description">A short description of the item.</param>
 /// <param name="alternateName">An alias for the item</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 /// <param name="thumbnailUrl">The URL to a thumbnail of the
 /// item.</param>
 /// <param name="provider">The source of the creative work.</param>
 /// <param name="text">Text content of this creative work</param>
 public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = default(string), string name = default(string), string url = default(string), ImageObject image = default(ImageObject), string description = default(string), string alternateName = default(string), string bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string))
     : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId)
 {
     ThumbnailUrl = thumbnailUrl;
     Provider     = provider;
     Text         = text;
     CustomInit();
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the Query class.
 /// </summary>
 /// <param name="text">The query string. Use this string as the query
 /// term in a new search request.</param>
 /// <param name="displayText">The display version of the query term.
 /// This version of the query term may contain special characters that
 /// highlight the search term found in the query string. The string
 /// contains the highlighting characters only if the query enabled hit
 /// highlighting</param>
 /// <param name="webSearchUrl">The URL that takes the user to the Bing
 /// search results page for the query.Only related search results
 /// include this field.</param>
 /// <param name="searchLink">The URL that you use to get the results of
 /// the related search. Before using the URL, you must append query
 /// parameters as appropriate and include the Ocp-Apim-Subscription-Key
 /// header. Use this URL if you're displaying the results in your own
 /// user interface. Otherwise, use the webSearchUrl URL.</param>
 /// <param name="thumbnail">The URL to a thumbnail of a related
 /// image.</param>
 public Query(string text, string displayText = default(string), string webSearchUrl = default(string), string searchLink = default(string), ImageObject thumbnail = default(ImageObject))
 {
     Text         = text;
     DisplayText  = displayText;
     WebSearchUrl = webSearchUrl;
     SearchLink   = searchLink;
     Thumbnail    = thumbnail;
     CustomInit();
 }