< Summary

Class:Microsoft.Azure.CognitiveServices.Search.AutoSuggest.Models.CreativeWork
Assembly:Microsoft.Azure.CognitiveServices.Search.BingAutoSuggest
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\CreativeWork.cs
Covered lines:2
Uncovered lines:34
Coverable lines:36
Total lines:156
Line coverage:5.5% (2 of 36)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ThumbnailUrl()-0%100%
get_About()-0%100%
get_Mentions()-0%100%
get_Provider()-0%100%
get_Creator()-0%100%
get_Text()-0%100%
get_DiscussionUrl()-0%100%
get_CommentCount()-0%100%
get_MainEntity()-0%100%
get_HeadLine()-0%100%
get_CopyrightHolder()-0%100%
get_CopyrightYear()-0%100%
get_Disclaimer()-0%100%
get_IsAccessibleForFree()-0%100%
get_Genre()-0%100%
get_IsFamilyFriendly()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\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.AutoSuggest.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>
 1623        public CreativeWork()
 24        {
 25            CustomInit();
 1626        }
 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="url">The URL to get more information about the thing
 36        /// represented by this object.</param>
 37        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 38        /// item.</param>
 39        /// <param name="about">For internal use only.</param>
 40        /// <param name="mentions">For internal use only.</param>
 41        /// <param name="provider">The source of the creative work.</param>
 42        /// <param name="text">Text content of this creative work</param>
 43        public CreativeWork(string id = default(string), string readLink = default(string), string webSearchUrl = defaul
 044            : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard,
 45        {
 046            ThumbnailUrl = thumbnailUrl;
 047            About = about;
 048            Mentions = mentions;
 049            Provider = provider;
 050            Creator = creator;
 051            Text = text;
 052            DiscussionUrl = discussionUrl;
 053            CommentCount = commentCount;
 054            MainEntity = mainEntity;
 055            HeadLine = headLine;
 056            CopyrightHolder = copyrightHolder;
 057            CopyrightYear = copyrightYear;
 058            Disclaimer = disclaimer;
 059            IsAccessibleForFree = isAccessibleForFree;
 060            Genre = genre;
 061            IsFamilyFriendly = isFamilyFriendly;
 62            CustomInit();
 063        }
 64
 65        /// <summary>
 66        /// An initialization method that performs custom operations like setting defaults
 67        /// </summary>
 68        partial void CustomInit();
 69
 70        /// <summary>
 71        /// Gets the URL to a thumbnail of the item.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "thumbnailUrl")]
 074        public string ThumbnailUrl { get; private set; }
 75
 76        /// <summary>
 77        /// Gets for internal use only.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "about")]
 080        public IList<Thing> About { get; private set; }
 81
 82        /// <summary>
 83        /// Gets for internal use only.
 84        /// </summary>
 85        [JsonProperty(PropertyName = "mentions")]
 086        public IList<Thing> Mentions { get; private set; }
 87
 88        /// <summary>
 89        /// Gets the source of the creative work.
 90        /// </summary>
 91        [JsonProperty(PropertyName = "provider")]
 092        public IList<Thing> Provider { get; private set; }
 93
 94        /// <summary>
 95        /// </summary>
 96        [JsonProperty(PropertyName = "creator")]
 097        public Thing Creator { get; private set; }
 98
 99        /// <summary>
 100        /// Gets text content of this creative work
 101        /// </summary>
 102        [JsonProperty(PropertyName = "text")]
 0103        public string Text { get; private set; }
 104
 105        /// <summary>
 106        /// </summary>
 107        [JsonProperty(PropertyName = "discussionUrl")]
 0108        public string DiscussionUrl { get; private set; }
 109
 110        /// <summary>
 111        /// </summary>
 112        [JsonProperty(PropertyName = "commentCount")]
 0113        public int? CommentCount { get; private set; }
 114
 115        /// <summary>
 116        /// </summary>
 117        [JsonProperty(PropertyName = "mainEntity")]
 0118        public Thing MainEntity { get; private set; }
 119
 120        /// <summary>
 121        /// </summary>
 122        [JsonProperty(PropertyName = "headLine")]
 0123        public string HeadLine { get; private set; }
 124
 125        /// <summary>
 126        /// </summary>
 127        [JsonProperty(PropertyName = "copyrightHolder")]
 0128        public Thing CopyrightHolder { get; private set; }
 129
 130        /// <summary>
 131        /// </summary>
 132        [JsonProperty(PropertyName = "copyrightYear")]
 0133        public int? CopyrightYear { get; private set; }
 134
 135        /// <summary>
 136        /// </summary>
 137        [JsonProperty(PropertyName = "disclaimer")]
 0138        public string Disclaimer { get; private set; }
 139
 140        /// <summary>
 141        /// </summary>
 142        [JsonProperty(PropertyName = "isAccessibleForFree")]
 0143        public bool? IsAccessibleForFree { get; private set; }
 144
 145        /// <summary>
 146        /// </summary>
 147        [JsonProperty(PropertyName = "genre")]
 0148        public IList<string> Genre { get; private set; }
 149
 150        /// <summary>
 151        /// </summary>
 152        [JsonProperty(PropertyName = "isFamilyFriendly")]
 0153        public bool? IsFamilyFriendly { get; private set; }
 154
 155    }
 156}