| | 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.Linq; |
| | 11 | |
|
| | 12 | | /// <summary> |
| | 13 | | /// Defines a count of the number of websites where you can shop or perform |
| | 14 | | /// other actions related to the image. |
| | 15 | | /// </summary> |
| | 16 | | public partial class ImagesImageMetadata |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the ImagesImageMetadata class. |
| | 20 | | /// </summary> |
| 300 | 21 | | public ImagesImageMetadata() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 300 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the ImagesImageMetadata class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="shoppingSourcesCount">The number of websites that sell |
| | 30 | | /// the products seen in the image.</param> |
| | 31 | | /// <param name="recipeSourcesCount">The number of websites that offer |
| | 32 | | /// recipes of the food seen in the image.</param> |
| | 33 | | /// <param name="aggregateOffer">A summary of the online offers of |
| | 34 | | /// products found in the image. For example, if the image is of a |
| | 35 | | /// dress, the offer might identify the lowest price and the number of |
| | 36 | | /// offers found. Only visually similar products insights include this |
| | 37 | | /// field. The offer includes the following fields: Name, |
| | 38 | | /// AggregateRating, OfferCount, and LowPrice.</param> |
| 0 | 39 | | public ImagesImageMetadata(int? shoppingSourcesCount = default(int?), int? recipeSourcesCount = default(int?), A |
| | 40 | | { |
| 0 | 41 | | ShoppingSourcesCount = shoppingSourcesCount; |
| 0 | 42 | | RecipeSourcesCount = recipeSourcesCount; |
| 0 | 43 | | AggregateOffer = aggregateOffer; |
| | 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 the number of websites that sell the products seen in the |
| | 54 | | /// image. |
| | 55 | | /// </summary> |
| | 56 | | [JsonProperty(PropertyName = "shoppingSourcesCount")] |
| 0 | 57 | | public int? ShoppingSourcesCount { get; private set; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets the number of websites that offer recipes of the food seen in |
| | 61 | | /// the image. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "recipeSourcesCount")] |
| 0 | 64 | | public int? RecipeSourcesCount { get; private set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets a summary of the online offers of products found in the image. |
| | 68 | | /// For example, if the image is of a dress, the offer might identify |
| | 69 | | /// the lowest price and the number of offers found. Only visually |
| | 70 | | /// similar products insights include this field. The offer includes |
| | 71 | | /// the following fields: Name, AggregateRating, OfferCount, and |
| | 72 | | /// LowPrice. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "aggregateOffer")] |
| 0 | 75 | | public AggregateOffer AggregateOffer { get; private set; } |
| | 76 | |
|
| | 77 | | } |
| | 78 | | } |