< Summary

Class:Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.VideoObject
Assembly:Microsoft.Azure.CognitiveServices.Search.BingNewsSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\VideoObject.cs
Covered lines:2
Uncovered lines:20
Coverable lines:22
Total lines:120
Line coverage:9% (2 of 22)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_MotionThumbnailUrl()-0%100%
get_MotionThumbnailId()-0%100%
get_EmbedHtml()-0%100%
get_AllowHttpsEmbed()-0%100%
get_ViewCount()-0%100%
get_Thumbnail()-0%100%
get_VideoId()-0%100%
get_AllowMobileEmbed()-0%100%
get_IsSuperfresh()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\VideoObject.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.NewsSearch.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 video object that is relevant to the query.
 16    /// </summary>
 17    public partial class VideoObject : MediaObject
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the VideoObject class.
 21        /// </summary>
 422        public VideoObject()
 23        {
 24            CustomInit();
 425        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the VideoObject 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="image">An image of the item.</param>
 38        /// <param name="description">A short description of the item.</param>
 39        /// <param name="alternateName">An alias for the item</param>
 40        /// <param name="bingId">An ID that uniquely identifies this
 41        /// item.</param>
 42        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 43        /// item.</param>
 44        /// <param name="provider">The source of the creative work.</param>
 45        /// <param name="datePublished">The date on which the CreativeWork was
 46        /// published.</param>
 47        /// <param name="video">A video of the item.</param>
 48        /// <param name="contentUrl">Original URL to retrieve the source (file)
 49        /// for the media object (e.g the source URL for the image).</param>
 50        /// <param name="width">The width of the source media object, in
 51        /// pixels.</param>
 52        /// <param name="height">The height of the source media object, in
 53        /// pixels.</param>
 54        public VideoObject(string id = default(string), string webSearchUrl = default(string), string name = default(str
 055            : base(id, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provider, dateP
 56        {
 057            MotionThumbnailUrl = motionThumbnailUrl;
 058            MotionThumbnailId = motionThumbnailId;
 059            EmbedHtml = embedHtml;
 060            AllowHttpsEmbed = allowHttpsEmbed;
 061            ViewCount = viewCount;
 062            Thumbnail = thumbnail;
 063            VideoId = videoId;
 064            AllowMobileEmbed = allowMobileEmbed;
 065            IsSuperfresh = isSuperfresh;
 66            CustomInit();
 067        }
 68
 69        /// <summary>
 70        /// An initialization method that performs custom operations like setting defaults
 71        /// </summary>
 72        partial void CustomInit();
 73
 74        /// <summary>
 75        /// </summary>
 76        [JsonProperty(PropertyName = "motionThumbnailUrl")]
 077        public string MotionThumbnailUrl { get; private set; }
 78
 79        /// <summary>
 80        /// </summary>
 81        [JsonProperty(PropertyName = "motionThumbnailId")]
 082        public string MotionThumbnailId { get; private set; }
 83
 84        /// <summary>
 85        /// </summary>
 86        [JsonProperty(PropertyName = "embedHtml")]
 087        public string EmbedHtml { get; private set; }
 88
 89        /// <summary>
 90        /// </summary>
 91        [JsonProperty(PropertyName = "allowHttpsEmbed")]
 092        public bool? AllowHttpsEmbed { get; private set; }
 93
 94        /// <summary>
 95        /// </summary>
 96        [JsonProperty(PropertyName = "viewCount")]
 097        public int? ViewCount { get; private set; }
 98
 99        /// <summary>
 100        /// </summary>
 101        [JsonProperty(PropertyName = "thumbnail")]
 0102        public ImageObject Thumbnail { get; private set; }
 103
 104        /// <summary>
 105        /// </summary>
 106        [JsonProperty(PropertyName = "videoId")]
 0107        public string VideoId { get; private set; }
 108
 109        /// <summary>
 110        /// </summary>
 111        [JsonProperty(PropertyName = "allowMobileEmbed")]
 0112        public bool? AllowMobileEmbed { get; private set; }
 113
 114        /// <summary>
 115        /// </summary>
 116        [JsonProperty(PropertyName = "isSuperfresh")]
 0117        public bool? IsSuperfresh { get; private set; }
 118
 119    }
 120}