< Summary

Class:Microsoft.Azure.CognitiveServices.Search.CustomImageSearch.Models.CreativeWork
Assembly:Microsoft.Azure.CognitiveServices.Search.BingCustomImageSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomImageSearch\src\Generated\CustomImageSearch\Models\CreativeWork.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:81
Line coverage:30% (3 of 10)
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_Text()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingCustomImageSearch\src\Generated\CustomImageSearch\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.CustomImageSearch.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>
 14023        public CreativeWork()
 24        {
 25            CustomInit();
 14026        }
 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="text">Text content of this creative work</param>
 48        public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = defaul
 049            : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId)
 50        {
 051            ThumbnailUrl = thumbnailUrl;
 052            Provider = provider;
 053            Text = text;
 54            CustomInit();
 055        }
 56
 57        /// <summary>
 58        /// An initialization method that performs custom operations like setting defaults
 59        /// </summary>
 60        partial void CustomInit();
 61
 62        /// <summary>
 63        /// Gets the URL to a thumbnail of the item.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "thumbnailUrl")]
 7266        public string ThumbnailUrl { get; private set; }
 67
 68        /// <summary>
 69        /// Gets the source of the creative work.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "provider")]
 072        public IList<Thing> Provider { get; private set; }
 73
 74        /// <summary>
 75        /// Gets text content of this creative work
 76        /// </summary>
 77        [JsonProperty(PropertyName = "text")]
 078        public string Text { get; private set; }
 79
 80    }
 81}