< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VideoSearch.Models.ImageObject
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVideoSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\Models\ImageObject.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:71
Line coverage:33.3% (2 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Thumbnail()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVideoSearch\src\Generated\VideoSearch\Models\ImageObject.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.VideoSearch.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>
 36222        public ImageObject()
 23        {
 24            CustomInit();
 36225        }
 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="webSearchUrl">The URL To Bing's search result for this
 32        /// item.</param>
 33        /// <param name="name">The name of the thing represented by this
 34        /// object.</param>
 35        /// <param name="url">The URL to get more information about the thing
 36        /// represented by this object.</param>
 37        /// <param name="description">A short description of the item.</param>
 38        /// <param name="bingId">An ID that uniquely identifies this
 39        /// item.</param>
 40        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 41        /// item.</param>
 42        /// <param name="provider">The source of the creative work.</param>
 43        /// <param name="contentUrl">Original URL to retrieve the source (file)
 44        /// for the media object (e.g the source URL for the image).</param>
 45        /// <param name="hostPageUrl">URL of the page that hosts the media
 46        /// object.</param>
 47        /// <param name="width">The width of the source media object, in
 48        /// pixels.</param>
 49        /// <param name="height">The height of the source media object, in
 50        /// pixels.</param>
 51        /// <param name="thumbnail">The URL to a thumbnail of the image</param>
 52        public ImageObject(string id = default(string), string webSearchUrl = default(string), string name = default(str
 053            : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, text,
 54        {
 055            Thumbnail = thumbnail;
 56            CustomInit();
 057        }
 58
 59        /// <summary>
 60        /// An initialization method that performs custom operations like setting defaults
 61        /// </summary>
 62        partial void CustomInit();
 63
 64        /// <summary>
 65        /// Gets the URL to a thumbnail of the image
 66        /// </summary>
 67        [JsonProperty(PropertyName = "thumbnail")]
 068        public ImageObject Thumbnail { get; private set; }
 69
 70    }
 71}

Methods/Properties

.ctor()
.ctor(...)
get_Thumbnail()