| | 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.NewsSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | public partial class Article : CreativeWork |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// Initializes a new instance of the Article class. |
| | 18 | | /// </summary> |
| 20 | 19 | | public Article() |
| | 20 | | { |
| | 21 | | CustomInit(); |
| 20 | 22 | | } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the Article class. |
| | 26 | | /// </summary> |
| | 27 | | /// <param name="id">A String identifier.</param> |
| | 28 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 29 | | /// item.</param> |
| | 30 | | /// <param name="name">The name of the thing represented by this |
| | 31 | | /// object.</param> |
| | 32 | | /// <param name="url">The URL to get more information about the thing |
| | 33 | | /// represented by this object.</param> |
| | 34 | | /// <param name="image">An image of the item.</param> |
| | 35 | | /// <param name="description">A short description of the item.</param> |
| | 36 | | /// <param name="alternateName">An alias for the item</param> |
| | 37 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 38 | | /// item.</param> |
| | 39 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 40 | | /// item.</param> |
| | 41 | | /// <param name="provider">The source of the creative work.</param> |
| | 42 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 43 | | /// published.</param> |
| | 44 | | /// <param name="video">A video of the item.</param> |
| | 45 | | /// <param name="wordCount">The number of words in the text of the |
| | 46 | | /// Article.</param> |
| | 47 | | public Article(string id = default(string), string webSearchUrl = default(string), string name = default(string) |
| 0 | 48 | | : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, dateP |
| | 49 | | { |
| 0 | 50 | | WordCount = wordCount; |
| | 51 | | CustomInit(); |
| 0 | 52 | | } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | 56 | | /// </summary> |
| | 57 | | partial void CustomInit(); |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets the number of words in the text of the Article. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "wordCount")] |
| 0 | 63 | | public int? WordCount { get; private set; } |
| | 64 | |
|
| | 65 | | } |
| | 66 | | } |