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