< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models.CreativeWork
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVisualSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\CreativeWork.cs
Covered lines:2
Uncovered lines:10
Coverable lines:12
Total lines:92
Line coverage:16.6% (2 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()-0%100%
get_DatePublished()-0%100%
get_Text()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\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.VisualSearch.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>
 76823        public CreativeWork()
 24        {
 25            CustomInit();
 76826        }
 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="readLink">The URL that returns this resource. To use
 33        /// the URL, append query parameters as appropriate and include the
 34        /// Ocp-Apim-Subscription-Key header.</param>
 35        /// <param name="webSearchUrl">The URL to Bing's search result for this
 36        /// item.</param>
 37        /// <param name="name">The name of the thing represented by this
 38        /// object.</param>
 39        /// <param name="url">The URL to get more information about the thing
 40        /// represented by this object.</param>
 41        /// <param name="image">An image of the item.</param>
 42        /// <param name="description">A short description of the item.</param>
 43        /// <param name="alternateName">An alias for the item.</param>
 44        /// <param name="bingId">An ID that uniquely identifies this
 45        /// item.</param>
 46        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 47        /// item.</param>
 48        /// <param name="provider">The source of the creative work.</param>
 49        /// <param name="datePublished">The date on which the CreativeWork was
 50        /// published.</param>
 51        /// <param name="text">Text content of this creative work.</param>
 52        public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = defaul
 053            : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId)
 54        {
 055            ThumbnailUrl = thumbnailUrl;
 056            Provider = provider;
 057            DatePublished = datePublished;
 058            Text = text;
 59            CustomInit();
 060        }
 61
 62        /// <summary>
 63        /// An initialization method that performs custom operations like setting defaults
 64        /// </summary>
 65        partial void CustomInit();
 66
 67        /// <summary>
 68        /// Gets the URL to a thumbnail of the item.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "thumbnailUrl")]
 071        public string ThumbnailUrl { get; private set; }
 72
 73        /// <summary>
 74        /// Gets the source of the creative work.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "provider")]
 077        public IList<Thing> Provider { get; private set; }
 78
 79        /// <summary>
 80        /// Gets the date on which the CreativeWork was published.
 81        /// </summary>
 82        [JsonProperty(PropertyName = "datePublished")]
 083        public string DatePublished { get; private set; }
 84
 85        /// <summary>
 86        /// Gets text content of this creative work.
 87        /// </summary>
 88        [JsonProperty(PropertyName = "text")]
 089        public string Text { get; private set; }
 90
 91    }
 92}