< Summary

Class:Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.CreativeWork
Assembly:Microsoft.Azure.CognitiveServices.Search.BingImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\Models\CreativeWork.cs
Covered lines:3
Uncovered lines:9
Coverable lines:12
Total lines:90
Line coverage:25% (3 of 12)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingImageSearch\src\Generated\ImageSearch\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.ImageSearch.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>
 114423        public CreativeWork()
 24        {
 25            CustomInit();
 114426        }
 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.</param>
 33        /// <param name="webSearchUrl">The URL To Bing's search result for this
 34        /// item.</param>
 35        /// <param name="name">The name of the thing represented by this
 36        /// object.</param>
 37        /// <param name="url">The URL to get more information about the thing
 38        /// represented by this object.</param>
 39        /// <param name="image">An image of the item.</param>
 40        /// <param name="description">A short description of the item.</param>
 41        /// <param name="alternateName">An alias for the item</param>
 42        /// <param name="bingId">An ID that uniquely identifies this
 43        /// item.</param>
 44        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 45        /// item.</param>
 46        /// <param name="provider">The source of the creative work.</param>
 47        /// <param name="datePublished">The date on which the CreativeWork was
 48        /// published.</param>
 49        /// <param name="text">Text content of this creative work</param>
 50        public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = defaul
 051            : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId)
 52        {
 053            ThumbnailUrl = thumbnailUrl;
 054            Provider = provider;
 055            DatePublished = datePublished;
 056            Text = text;
 57            CustomInit();
 058        }
 59
 60        /// <summary>
 61        /// An initialization method that performs custom operations like setting defaults
 62        /// </summary>
 63        partial void CustomInit();
 64
 65        /// <summary>
 66        /// Gets the URL to a thumbnail of the item.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "thumbnailUrl")]
 59469        public string ThumbnailUrl { get; private set; }
 70
 71        /// <summary>
 72        /// Gets the source of the creative work.
 73        /// </summary>
 74        [JsonProperty(PropertyName = "provider")]
 075        public IList<Thing> Provider { get; private set; }
 76
 77        /// <summary>
 78        /// Gets the date on which the CreativeWork was published.
 79        /// </summary>
 80        [JsonProperty(PropertyName = "datePublished")]
 081        public string DatePublished { get; private set; }
 82
 83        /// <summary>
 84        /// Gets text content of this creative work
 85        /// </summary>
 86        [JsonProperty(PropertyName = "text")]
 087        public string Text { get; private set; }
 88
 89    }
 90}