| | 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.CustomImageSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines an image |
| | 16 | | /// </summary> |
| | 17 | | public partial class ImageObject : MediaObject |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the ImageObject class. |
| | 21 | | /// </summary> |
| 140 | 22 | | public ImageObject() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 140 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the ImageObject 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="text">Text content of this creative work</param> |
| | 47 | | /// <param name="contentUrl">Original URL to retrieve the source (file) |
| | 48 | | /// for the media object (e.g the source URL for the image).</param> |
| | 49 | | /// <param name="hostPageUrl">URL of the page that hosts the media |
| | 50 | | /// object.</param> |
| | 51 | | /// <param name="contentSize">Size of the media object content (use |
| | 52 | | /// format "value unit" e.g "1024 B").</param> |
| | 53 | | /// <param name="encodingFormat">Encoding format (e.g mp3, mp4, jpeg, |
| | 54 | | /// etc).</param> |
| | 55 | | /// <param name="hostPageDisplayUrl">Display URL of the page that hosts |
| | 56 | | /// the media object.</param> |
| | 57 | | /// <param name="width">The width of the media object, in |
| | 58 | | /// pixels.</param> |
| | 59 | | /// <param name="height">The height of the media object, in |
| | 60 | | /// pixels.</param> |
| | 61 | | /// <param name="thumbnail">The URL to a thumbnail of the image</param> |
| | 62 | | /// <param name="imageInsightsToken">The token that you use in a |
| | 63 | | /// subsequent call to the Image Search API to get additional |
| | 64 | | /// information about the image. For information about using this |
| | 65 | | /// token, see the insightsToken query parameter.</param> |
| | 66 | | /// <param name="imageId">Unique Id for the image</param> |
| | 67 | | /// <param name="accentColor">A three-byte hexadecimal number that |
| | 68 | | /// represents the color that dominates the image. Use the color as the |
| | 69 | | /// temporary background in your client until the image is |
| | 70 | | /// loaded.</param> |
| | 71 | | /// <param name="visualWords">Visual representation of the image. Used |
| | 72 | | /// for getting more sizes</param> |
| | 73 | | public ImageObject(string id = default(string), string readLink = default(string), string webSearchUrl = default |
| 0 | 74 | | : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi |
| | 75 | | { |
| 0 | 76 | | Thumbnail = thumbnail; |
| 0 | 77 | | ImageInsightsToken = imageInsightsToken; |
| 0 | 78 | | ImageId = imageId; |
| 0 | 79 | | AccentColor = accentColor; |
| 0 | 80 | | VisualWords = visualWords; |
| | 81 | | CustomInit(); |
| 0 | 82 | | } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// An initialization method that performs custom operations like setting defaults |
| | 86 | | /// </summary> |
| | 87 | | partial void CustomInit(); |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets the URL to a thumbnail of the image |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "thumbnail")] |
| 72 | 93 | | public ImageObject Thumbnail { get; private set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets the token that you use in a subsequent call to the Image |
| | 97 | | /// Search API to get additional information about the image. For |
| | 98 | | /// information about using this token, see the insightsToken query |
| | 99 | | /// parameter. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "imageInsightsToken")] |
| 0 | 102 | | public string ImageInsightsToken { get; private set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets unique Id for the image |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "imageId")] |
| 0 | 108 | | public string ImageId { get; private set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets a three-byte hexadecimal number that represents the color that |
| | 112 | | /// dominates the image. Use the color as the temporary background in |
| | 113 | | /// your client until the image is loaded. |
| | 114 | | /// </summary> |
| | 115 | | [JsonProperty(PropertyName = "accentColor")] |
| 0 | 116 | | public string AccentColor { get; private set; } |
| | 117 | |
|
| | 118 | | /// <summary> |
| | 119 | | /// Gets visual representation of the image. Used for getting more |
| | 120 | | /// sizes |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "visualWords")] |
| 0 | 123 | | public string VisualWords { get; private set; } |
| | 124 | |
|
| | 125 | | } |
| | 126 | | } |