コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the WebPage 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="description">A short description of 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="displayUrl">The display URL of the webpage. The URL is
 /// meant for display purposes only and is not well formed.</param>
 /// <param name="snippet">A snippet of text from the webpage that
 /// describes its contents.</param>
 /// <param name="deepLinks">A list of links to related content that
 /// Bing found in the website that contains this webpage. The Webpage
 /// object in this context includes only the name, url, urlPingSuffix,
 /// and snippet fields.</param>
 /// <param name="dateLastCrawled">The last time that Bing crawled the
 /// webpage. The date is in the form, YYYY-MM-DDTHH:MM:SS. For example,
 /// 2015-04-13T05:23:39.</param>
 /// <param name="searchTags">A list of search tags that the webpage
 /// owner specified on the webpage. The API returns only indexed search
 /// tags. The name field of the MetaTag object contains the indexed
 /// search tag. Search tags begin with search.* (for example,
 /// search.assetId). The content field contains the tag's
 /// value.</param>
 public WebPage(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 bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string), string displayUrl = default(string), string snippet = default(string), IList <WebPage> deepLinks = default(IList <WebPage>), string dateLastCrawled = default(string), IList <WebMetaTag> searchTags = default(IList <WebMetaTag>), ImageObject primaryImageOfPage = default(ImageObject))
     : base(id, webSearchUrl, name, url, image, description, bingId, thumbnailUrl, provider, text)
 {
     DisplayUrl         = displayUrl;
     Snippet            = snippet;
     DeepLinks          = deepLinks;
     DateLastCrawled    = dateLastCrawled;
     SearchTags         = searchTags;
     PrimaryImageOfPage = primaryImageOfPage;
     CustomInit();
 }
コード例 #2
0
 /// <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="description">A short description of 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="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="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 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), 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, bingId, thumbnailUrl, provider, text, contentUrl, hostPageUrl, width, height)
 {
     MotionThumbnailUrl = motionThumbnailUrl;
     MotionThumbnailId  = motionThumbnailId;
     EmbedHtml          = embedHtml;
     AllowHttpsEmbed    = allowHttpsEmbed;
     ViewCount          = viewCount;
     Thumbnail          = thumbnail;
     VideoId            = videoId;
     AllowMobileEmbed   = allowMobileEmbed;
     IsSuperfresh       = isSuperfresh;
     CustomInit();
 }
コード例 #3
0
 /// <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="description">A short description of 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 bingId = default(string))
     : base(id, webSearchUrl)
 {
     Name        = name;
     Url         = url;
     Image       = image;
     Description = description;
     BingId      = bingId;
     CustomInit();
 }
コード例 #4
0
 /// <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="description">A short description of 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="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="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 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), int?width = default(int?), int?height = default(int?))
     : base(id, webSearchUrl, name, url, image, description, bingId, thumbnailUrl, provider, text)
 {
     ContentUrl  = contentUrl;
     HostPageUrl = hostPageUrl;
     Width       = width;
     Height      = height;
     CustomInit();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the StructuredValue 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="description">A short description of the item.</param>
 /// <param name="bingId">An ID that uniquely identifies this
 /// item.</param>
 public StructuredValue(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 bingId = default(string))
     : base(id, webSearchUrl, name, url, image, description, bingId)
 {
     CustomInit();
 }
コード例 #6
0
 /// <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="description">A short description of 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="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 bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string), int?wordCount = default(int?))
     : base(id, webSearchUrl, name, url, image, description, bingId, thumbnailUrl, provider, text)
 {
     WordCount = wordCount;
     CustomInit();
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the ImageObject 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="description">A short description of 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="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="width">The width of the source media object, in
 /// pixels.</param>
 /// <param name="height">The height of the source media object, in
 /// pixels.</param>
 /// <param name="thumbnail">The URL to a thumbnail of the image</param>
 public ImageObject(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 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), int?width = default(int?), int?height = default(int?), ImageObject thumbnail = default(ImageObject))
     : base(id, webSearchUrl, name, url, image, description, bingId, thumbnailUrl, provider, text, contentUrl, hostPageUrl, width, height)
 {
     Thumbnail = thumbnail;
     CustomInit();
 }
コード例 #8
0
 /// <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="description">A short description of 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>
 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 bingId = default(string), string thumbnailUrl = default(string), IList <Thing> provider = default(IList <Thing>), string text = default(string))
     : base(id, webSearchUrl, name, url, image, description, bingId)
 {
     ThumbnailUrl = thumbnailUrl;
     Provider     = provider;
     Text         = text;
     CustomInit();
 }
コード例 #9
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>
 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();
 }