| | 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.ImageSearch.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> |
| 1144 | 22 | | public MediaObject() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 1144 | 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="readLink">The URL that returns this resource.</param> |
| | 32 | | /// <param name="webSearchUrl">The URL To Bing's search result for this |
| | 33 | | /// item.</param> |
| | 34 | | /// <param name="name">The name of the thing represented by this |
| | 35 | | /// object.</param> |
| | 36 | | /// <param name="url">The URL to get more information about the thing |
| | 37 | | /// represented by this object.</param> |
| | 38 | | /// <param name="image">An image of the item.</param> |
| | 39 | | /// <param name="description">A short description of the item.</param> |
| | 40 | | /// <param name="alternateName">An alias for the item</param> |
| | 41 | | /// <param name="bingId">An ID that uniquely identifies this |
| | 42 | | /// item.</param> |
| | 43 | | /// <param name="thumbnailUrl">The URL to a thumbnail of the |
| | 44 | | /// item.</param> |
| | 45 | | /// <param name="provider">The source of the creative work.</param> |
| | 46 | | /// <param name="datePublished">The date on which the CreativeWork was |
| | 47 | | /// published.</param> |
| | 48 | | /// <param name="text">Text content of this creative work</param> |
| | 49 | | /// <param name="contentUrl">Original URL to retrieve the source (file) |
| | 50 | | /// for the media object (e.g the source URL for the image).</param> |
| | 51 | | /// <param name="hostPageUrl">URL of the page that hosts the media |
| | 52 | | /// object.</param> |
| | 53 | | /// <param name="contentSize">Size of the media object content (use |
| | 54 | | /// format "value unit" e.g "1024 B").</param> |
| | 55 | | /// <param name="encodingFormat">Encoding format (e.g mp3, mp4, jpeg, |
| | 56 | | /// etc).</param> |
| | 57 | | /// <param name="hostPageDisplayUrl">Display URL of the page that hosts |
| | 58 | | /// the media object.</param> |
| | 59 | | /// <param name="width">The width of the source media object, in |
| | 60 | | /// pixels.</param> |
| | 61 | | /// <param name="height">The height of the source media object, in |
| | 62 | | /// pixels.</param> |
| | 63 | | public MediaObject(string id = default(string), string readLink = default(string), string webSearchUrl = default |
| 0 | 64 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 65 | | { |
| 0 | 66 | | ContentUrl = contentUrl; |
| 0 | 67 | | HostPageUrl = hostPageUrl; |
| 0 | 68 | | ContentSize = contentSize; |
| 0 | 69 | | EncodingFormat = encodingFormat; |
| 0 | 70 | | HostPageDisplayUrl = hostPageDisplayUrl; |
| 0 | 71 | | Width = width; |
| 0 | 72 | | Height = height; |
| | 73 | | CustomInit(); |
| 0 | 74 | | } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// An initialization method that performs custom operations like setting defaults |
| | 78 | | /// </summary> |
| | 79 | | partial void CustomInit(); |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets original URL to retrieve the source (file) for the media |
| | 83 | | /// object (e.g the source URL for the image). |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "contentUrl")] |
| 0 | 86 | | public string ContentUrl { get; private set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets URL of the page that hosts the media object. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "hostPageUrl")] |
| 296 | 92 | | public string HostPageUrl { get; private set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets size of the media object content (use format "value unit" e.g |
| | 96 | | /// "1024 B"). |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "contentSize")] |
| 0 | 99 | | public string ContentSize { get; private set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets encoding format (e.g mp3, mp4, jpeg, etc). |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "encodingFormat")] |
| 0 | 105 | | public string EncodingFormat { get; private set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets display URL of the page that hosts the media object. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "hostPageDisplayUrl")] |
| 0 | 111 | | public string HostPageDisplayUrl { get; private set; } |
| | 112 | |
|
| | 113 | | /// <summary> |
| | 114 | | /// Gets the width of the source media object, in pixels. |
| | 115 | | /// </summary> |
| | 116 | | [JsonProperty(PropertyName = "width")] |
| 0 | 117 | | public int? Width { get; private set; } |
| | 118 | |
|
| | 119 | | /// <summary> |
| | 120 | | /// Gets the height of the source media object, in pixels. |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "height")] |
| 0 | 123 | | public int? Height { get; private set; } |
| | 124 | |
|
| | 125 | | } |
| | 126 | | } |