| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.CustomSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines a webpage that is relevant to the query. |
| | 16 | | /// </summary> |
| | 17 | | public partial class WebPage : CreativeWork |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the WebPage class. |
| | 21 | | /// </summary> |
| 2 | 22 | | public WebPage() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 2 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the WebPage class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="id">A String identifier.</param> |
| | 31 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 32 | | /// item.</param> |
| | 33 | | /// <param name="name">The name of the thing represented by this |
| | 34 | | /// object.</param> |
| | 35 | | /// <param name="url">The URL to get more information about the thing |
| | 36 | | /// represented by this object.</param> |
| | 37 | | /// <param name="description">A short description of the item.</param> |
| | 38 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 39 | | /// item.</param> |
| | 40 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 41 | | /// item.</param> |
| | 42 | | /// <param name="provider">The source of the creative work.</param> |
| | 43 | | /// <param name="displayUrl">The display URL of the webpage. The URL is |
| | 44 | | /// meant for display purposes only and is not well formed.</param> |
| | 45 | | /// <param name="snippet">A snippet of text from the webpage that |
| | 46 | | /// describes its contents.</param> |
| | 47 | | /// <param name="deepLinks">A list of links to related content that |
| | 48 | | /// Bing found in the website that contains this webpage. The Webpage |
| | 49 | | /// object in this context includes only the name, url, urlPingSuffix, |
| | 50 | | /// and snippet fields.</param> |
| | 51 | | /// <param name="dateLastCrawled">The last time that Bing crawled the |
| | 52 | | /// webpage. The date is in the form, YYYY-MM-DDTHH:MM:SS. For example, |
| | 53 | | /// 2015-04-13T05:23:39.</param> |
| | 54 | | /// <param name="searchTags">A list of search tags that the webpage |
| | 55 | | /// owner specified on the webpage. The API returns only indexed search |
| | 56 | | /// tags. The name field of the MetaTag object contains the indexed |
| | 57 | | /// search tag. Search tags begin with search.* (for example, |
| | 58 | | /// search.assetId). The content field contains the tag's |
| | 59 | | /// value.</param> |
| | 60 | | public WebPage(string id = default(string), string webSearchUrl = default(string), string name = default(string) |
| 0 | 61 | | : base(id, webSearchUrl, name, url, description, bingId, thumbnailUrl, provider, text) |
| | 62 | | { |
| 0 | 63 | | DisplayUrl = displayUrl; |
| 0 | 64 | | Snippet = snippet; |
| 0 | 65 | | DeepLinks = deepLinks; |
| 0 | 66 | | DateLastCrawled = dateLastCrawled; |
| 0 | 67 | | SearchTags = searchTags; |
| | 68 | | CustomInit(); |
| 0 | 69 | | } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// An initialization method that performs custom operations like setting defaults |
| | 73 | | /// </summary> |
| | 74 | | partial void CustomInit(); |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets the display URL of the webpage. The URL is meant for display |
| | 78 | | /// purposes only and is not well formed. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "displayUrl")] |
| 4 | 81 | | public string DisplayUrl { get; private set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets a snippet of text from the webpage that describes its |
| | 85 | | /// contents. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "snippet")] |
| 0 | 88 | | public string Snippet { get; private set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets a list of links to related content that Bing found in the |
| | 92 | | /// website that contains this webpage. The Webpage object in this |
| | 93 | | /// context includes only the name, url, urlPingSuffix, and snippet |
| | 94 | | /// fields. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "deepLinks")] |
| 0 | 97 | | public IList<WebPage> DeepLinks { get; private set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets the last time that Bing crawled the webpage. The date is in |
| | 101 | | /// the form, YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39. |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "dateLastCrawled")] |
| 0 | 104 | | public string DateLastCrawled { get; private set; } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// Gets a list of search tags that the webpage owner specified on the |
| | 108 | | /// webpage. The API returns only indexed search tags. The name field |
| | 109 | | /// of the MetaTag object contains the indexed search tag. Search tags |
| | 110 | | /// begin with search.* (for example, search.assetId). The content |
| | 111 | | /// field contains the tag's value. |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "searchTags")] |
| 0 | 114 | | public IList<WebMetaTag> SearchTags { get; private set; } |
| | 115 | |
|
| | 116 | | } |
| | 117 | | } |