< Summary

Class:Microsoft.Azure.CognitiveServices.Search.AutoSuggest.Models.Action
Assembly:Microsoft.Azure.CognitiveServices.Search.BingAutoSuggest
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\Action.cs
Covered lines:2
Uncovered lines:10
Coverable lines:12
Total lines:75
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_Result()-0%100%
get_DisplayName()-0%100%
get_IsTopAction()-0%100%
get_ServiceUrl()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingAutoSuggest\src\Generated\AutoSuggest\Models\Action.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    public partial class Action : CreativeWork
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the Action class.
 18        /// </summary>
 1619        public Action()
 20        {
 21            CustomInit();
 1622        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the Action class.
 26        /// </summary>
 27        /// <param name="id">A String identifier.</param>
 28        /// <param name="readLink">The URL that returns this resource.</param>
 29        /// <param name="webSearchUrl">The URL To Bing's search result for this
 30        /// item.</param>
 31        /// <param name="url">The URL to get more information about the thing
 32        /// represented by this object.</param>
 33        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 34        /// item.</param>
 35        /// <param name="about">For internal use only.</param>
 36        /// <param name="mentions">For internal use only.</param>
 37        /// <param name="provider">The source of the creative work.</param>
 38        /// <param name="text">Text content of this creative work</param>
 39        public Action(string id = default(string), string readLink = default(string), string webSearchUrl = default(stri
 040            : base(id, readLink, webSearchUrl, potentialAction, immediateAction, preferredClickthroughUrl, adaptiveCard,
 41        {
 042            Result = result;
 043            DisplayName = displayName;
 044            IsTopAction = isTopAction;
 045            ServiceUrl = serviceUrl;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// </summary>
 56        [JsonProperty(PropertyName = "result")]
 057        public IList<Thing> Result { get; private set; }
 58
 59        /// <summary>
 60        /// </summary>
 61        [JsonProperty(PropertyName = "displayName")]
 062        public string DisplayName { get; private set; }
 63
 64        /// <summary>
 65        /// </summary>
 66        [JsonProperty(PropertyName = "isTopAction")]
 067        public bool? IsTopAction { get; private set; }
 68
 69        /// <summary>
 70        /// </summary>
 71        [JsonProperty(PropertyName = "serviceUrl")]
 072        public string ServiceUrl { get; private set; }
 73
 74    }
 75}