| | | 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 visual search API response. |
| | | 16 | | /// </summary> |
| | | 17 | | public partial class ImageKnowledge : Response |
| | | 18 | | { |
| | | 19 | | /// <summary> |
| | | 20 | | /// Initializes a new instance of the ImageKnowledge class. |
| | | 21 | | /// </summary> |
| | 8 | 22 | | public ImageKnowledge() |
| | | 23 | | { |
| | | 24 | | CustomInit(); |
| | 8 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Initializes a new instance of the ImageKnowledge 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="tags">A list of visual search tags.</param> |
| | | 37 | | /// <param name="image">Image object containing metadata about the |
| | | 38 | | /// requested image.</param> |
| | | 39 | | public ImageKnowledge(string id = default(string), string readLink = default(string), string webSearchUrl = defa |
| | 0 | 40 | | : base(id, readLink, webSearchUrl) |
| | | 41 | | { |
| | 0 | 42 | | Tags = tags; |
| | 0 | 43 | | Image = image; |
| | | 44 | | CustomInit(); |
| | 0 | 45 | | } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | | 49 | | /// </summary> |
| | | 50 | | partial void CustomInit(); |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets a list of visual search tags. |
| | | 54 | | /// </summary> |
| | | 55 | | [JsonProperty(PropertyName = "tags")] |
| | 32 | 56 | | public IList<ImageTag> Tags { get; private set; } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets image object containing metadata about the requested image. |
| | | 60 | | /// </summary> |
| | | 61 | | [JsonProperty(PropertyName = "image")] |
| | 0 | 62 | | public ImageObject Image { get; private set; } |
| | | 63 | | |
| | | 64 | | } |
| | | 65 | | } |