/// <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(); }
/// <summary> /// Initializes a new instance of the NewsArticle class. /// </summary> /// <param name="id">A String identifier.</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="datePublished">The date on which the CreativeWork was /// published.</param> /// <param name="video">A video of the item.</param> /// <param name="wordCount">The number of words in the text of the /// Article.</param> /// <param name="category">The news category that the article belongs /// to. For example, Sports. If the news category cannot be determined, /// the article does not include this field.</param> /// <param name="headline">A Boolean value that indicates whether the /// news article is a headline. If true, the article is a headline. The /// article includes this field only for news categories requests that /// do not specify the category query parameter.</param> /// <param name="clusteredArticles">A list of related news /// articles.</param> public NewsArticle(string id = 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 datePublished = default(string), VideoObject video = default(VideoObject), int?wordCount = default(int?), string category = default(string), bool?headline = default(bool?), IList <NewsArticle> clusteredArticles = default(IList <NewsArticle>)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, datePublished, video, wordCount) { Category = category; Headline = headline; ClusteredArticles = clusteredArticles; CustomInit(); }
/// <summary> /// Initializes a new instance of the Thing class. /// </summary> /// <param name="id">A String identifier.</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 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, webSearchUrl) { Name = name; Url = url; Image = image; Description = description; AlternateName = alternateName; BingId = bingId; CustomInit(); }
/// <summary> /// Initializes a new instance of the VideoObject class. /// </summary> /// <param name="id">A String identifier.</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="datePublished">The date on which the CreativeWork was /// published.</param> /// <param name="video">A video of the item.</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="width">The width of the source media object, in /// pixels.</param> /// <param name="height">The height of the source media object, in /// pixels.</param> public VideoObject(string id = 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 datePublished = default(string), VideoObject video = default(VideoObject), string contentUrl = default(string), int?width = default(int?), int?height = default(int?), string motionThumbnailUrl = default(string), string motionThumbnailId = default(string), string embedHtml = default(string), bool?allowHttpsEmbed = default(bool?), int?viewCount = default(int?), ImageObject thumbnail = default(ImageObject), string videoId = default(string), bool?allowMobileEmbed = default(bool?), bool?isSuperfresh = default(bool?)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, datePublished, video, contentUrl, width, height) { MotionThumbnailUrl = motionThumbnailUrl; MotionThumbnailId = motionThumbnailId; EmbedHtml = embedHtml; AllowHttpsEmbed = allowHttpsEmbed; ViewCount = viewCount; Thumbnail = thumbnail; VideoId = videoId; AllowMobileEmbed = allowMobileEmbed; IsSuperfresh = isSuperfresh; CustomInit(); }
/// <summary> /// Initializes a new instance of the CreativeWork class. /// </summary> /// <param name="id">A String identifier.</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="datePublished">The date on which the CreativeWork was /// published.</param> /// <param name="video">A video of the item.</param> public CreativeWork(string id = 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 datePublished = default(string), VideoObject video = default(VideoObject)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId) { ThumbnailUrl = thumbnailUrl; Provider = provider; DatePublished = datePublished; Video = video; CustomInit(); }
/// <summary> /// Initializes a new instance of the NewsTopic class. /// </summary> /// <param name="id">A String identifier.</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="isBreakingNews">A Boolean value that indicates whether /// the topic is considered breaking news. If the topic is considered /// breaking news, the value is true.</param> /// <param name="query">A search query term that returns this trending /// topic.</param> /// <param name="newsSearchUrl">The URL to the Bing News search results /// for the search query term</param> public NewsTopic(string id = 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), bool?isBreakingNews = default(bool?), Query query = default(Query), string newsSearchUrl = default(string)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId) { IsBreakingNews = isBreakingNews; Query = query; NewsSearchUrl = newsSearchUrl; CustomInit(); }
/// <summary> /// Initializes a new instance of the Organization class. /// </summary> /// <param name="id">A String identifier.</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 Organization(string id = 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, webSearchUrl, name, url, image, description, alternateName, bingId) { CustomInit(); }
/// <summary> /// Initializes a new instance of the MediaObject class. /// </summary> /// <param name="id">A String identifier.</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="datePublished">The date on which the CreativeWork was /// published.</param> /// <param name="video">A video of the item.</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="width">The width of the source media object, in /// pixels.</param> /// <param name="height">The height of the source media object, in /// pixels.</param> public MediaObject(string id = 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 datePublished = default(string), VideoObject video = default(VideoObject), string contentUrl = default(string), int?width = default(int?), int?height = default(int?)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, datePublished, video) { ContentUrl = contentUrl; Width = width; Height = height; CustomInit(); }
/// <summary> /// Initializes a new instance of the Article class. /// </summary> /// <param name="id">A String identifier.</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="datePublished">The date on which the CreativeWork was /// published.</param> /// <param name="video">A video of the item.</param> /// <param name="wordCount">The number of words in the text of the /// Article.</param> public Article(string id = 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 datePublished = default(string), VideoObject video = default(VideoObject), int?wordCount = default(int?)) : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, datePublished, video) { WordCount = wordCount; CustomInit(); }