< Summary

Class:Microsoft.Azure.CognitiveServices.Search.NewsSearch.Models.CreativeWork
Assembly:Microsoft.Azure.CognitiveServices.Search.BingNewsSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\CreativeWork.cs
Covered lines:4
Uncovered lines:8
Coverable lines:12
Total lines:89
Line coverage:33.3% (4 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ThumbnailUrl()-0%100%
get_Provider()-100%100%
get_DatePublished()-100%100%
get_Video()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingNewsSearch\src\Generated\NewsSearch\Models\CreativeWork.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    /// The most generic kind of creative work, including books, movies,
 16    /// photographs, software programs, etc.
 17    /// </summary>
 18    public partial class CreativeWork : Thing
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the CreativeWork class.
 22        /// </summary>
 6223        public CreativeWork()
 24        {
 25            CustomInit();
 6226        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the CreativeWork class.
 30        /// </summary>
 31        /// <param name="id">A String identifier.</param>
 32        /// <param name="webSearchUrl">The URL To Bing's search result for this
 33        /// item.</param>
 34        /// <param name="name">The name of the thing represented by this
 35        /// object.</param>
 36        /// <param name="url">The URL to get more information about the thing
 37        /// represented by this object.</param>
 38        /// <param name="image">An image of the item.</param>
 39        /// <param name="description">A short description of the item.</param>
 40        /// <param name="alternateName">An alias for the item</param>
 41        /// <param name="bingId">An ID that uniquely identifies this
 42        /// item.</param>
 43        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 44        /// item.</param>
 45        /// <param name="provider">The source of the creative work.</param>
 46        /// <param name="datePublished">The date on which the CreativeWork was
 47        /// published.</param>
 48        /// <param name="video">A video of the item.</param>
 49        public CreativeWork(string id = default(string), string webSearchUrl = default(string), string name = default(st
 050            : base(id, webSearchUrl, name, url, image, description, alternateName, bingId)
 51        {
 052            ThumbnailUrl = thumbnailUrl;
 053            Provider = provider;
 054            DatePublished = datePublished;
 055            Video = video;
 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 item.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "thumbnailUrl")]
 068        public string ThumbnailUrl { get; private set; }
 69
 70        /// <summary>
 71        /// Gets the source of the creative work.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "provider")]
 3874        public IList<Thing> Provider { get; private set; }
 75
 76        /// <summary>
 77        /// Gets the date on which the CreativeWork was published.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "datePublished")]
 2480        public string DatePublished { get; private set; }
 81
 82        /// <summary>
 83        /// Gets a video of the item.
 84        /// </summary>
 85        [JsonProperty(PropertyName = "video")]
 086        public VideoObject Video { get; private set; }
 87
 88    }
 89}