< Summary

Class:Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesImageMetadata
Assembly:Microsoft.Azure.CognitiveServices.Search.BingImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\ImagesImageMetadata.cs
Covered lines:2
Uncovered lines:8
Coverable lines:10
Total lines:78
Line coverage:20% (2 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ShoppingSourcesCount()-0%100%
get_RecipeSourcesCount()-0%100%
get_AggregateOffer()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\ImagesImageMetadata.cs

#LineLine coverage
 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
 7namespace Microsoft.Azure.CognitiveServices.Search.ImageSearch.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>
 29421        public ImagesImageMetadata()
 22        {
 23            CustomInit();
 29424        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the ImagesImageMetadata class.
 28        /// </summary>
 29        /// <param name="shoppingSourcesCount">The number of websites that
 30        /// offer goods of 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>
 039        public ImagesImageMetadata(int? shoppingSourcesCount = default(int?), int? recipeSourcesCount = default(int?), A
 40        {
 041            ShoppingSourcesCount = shoppingSourcesCount;
 042            RecipeSourcesCount = recipeSourcesCount;
 043            AggregateOffer = aggregateOffer;
 44            CustomInit();
 045        }
 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 offer goods of the products seen
 54        /// in the image.
 55        /// </summary>
 56        [JsonProperty(PropertyName = "shoppingSourcesCount")]
 057        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")]
 064        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")]
 075        public AggregateOffer AggregateOffer { get; private set; }
 76
 77    }
 78}