| | 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 | | /// <summary> |
| | 15 | | /// Defines a media object. |
| | 16 | | /// </summary> |
| | 17 | | public partial class MediaObject : CreativeWork |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the MediaObject class. |
| | 21 | | /// </summary> |
| 42 | 22 | | public MediaObject() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 42 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the MediaObject 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="image">An image of the item.</param> |
| | 38 | | /// <param name="description">A short description of the item.</param> |
| | 39 | | /// <param name="alternateName">An alias for the item</param> |
| | 40 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 41 | | /// item.</param> |
| | 42 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 43 | | /// item.</param> |
| | 44 | | /// <param name="provider">The source of the creative work.</param> |
| | 45 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 46 | | /// published.</param> |
| | 47 | | /// <param name="video">A video of the item.</param> |
| | 48 | | /// <param name="contentUrl">Original URL to retrieve the source (file) |
| | 49 | | /// for the media object (e.g the source URL for the image).</param> |
| | 50 | | /// <param name="width">The width of the source media object, in |
| | 51 | | /// pixels.</param> |
| | 52 | | /// <param name="height">The height of the source media object, in |
| | 53 | | /// pixels.</param> |
| | 54 | | public MediaObject(string id = default(string), string webSearchUrl = default(string), string name = default(str |
| 0 | 55 | | : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, dateP |
| | 56 | | { |
| 0 | 57 | | ContentUrl = contentUrl; |
| 0 | 58 | | Width = width; |
| 0 | 59 | | Height = height; |
| | 60 | | CustomInit(); |
| 0 | 61 | | } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// An initialization method that performs custom operations like setting defaults |
| | 65 | | /// </summary> |
| | 66 | | partial void CustomInit(); |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets original URL to retrieve the source (file) for the media |
| | 70 | | /// object (e.g the source URL for the image). |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "contentUrl")] |
| 0 | 73 | | public string ContentUrl { get; private set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets the width of the source media object, in pixels. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "width")] |
| 0 | 79 | | public int? Width { get; private set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets the height of the source media object, in pixels. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "height")] |
| 0 | 85 | | public int? Height { get; private set; } |
| | 86 | |
|
| | 87 | | } |
| | 88 | | } |