< Summary

Class:Microsoft.Azure.CognitiveServices.Search.LocalSearch.Models.Response
Assembly:Microsoft.Azure.CognitiveServices.Search.BingLocalSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingLocalSearch\src\Generated\LocalSearch\Models\Response.cs
Covered lines:0
Uncovered lines:16
Coverable lines:16
Total lines:85
Line coverage:0% (0 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_ReadLink()-0%100%
get_WebSearchUrl()-0%100%
get_PotentialAction()-0%100%
get_ImmediateAction()-0%100%
get_PreferredClickthroughUrl()-0%100%
get_AdaptiveCard()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingLocalSearch\src\Generated\LocalSearch\Models\Response.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.LocalSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    /// <summary>
 15    /// Defines a response. All schemas that return at the root of the response
 16    /// must inherit from this object.
 17    /// </summary>
 18    public partial class Response : Identifiable
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the Response class.
 22        /// </summary>
 023        public Response()
 24        {
 25            CustomInit();
 026        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the Response 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        public Response(string id = default(string), string readLink = default(string), string webSearchUrl = default(st
 036            : base(id)
 37        {
 038            ReadLink = readLink;
 039            WebSearchUrl = webSearchUrl;
 040            PotentialAction = potentialAction;
 041            ImmediateAction = immediateAction;
 042            PreferredClickthroughUrl = preferredClickthroughUrl;
 043            AdaptiveCard = adaptiveCard;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets the URL that returns this resource.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "readLink")]
 056        public string ReadLink { get; private set; }
 57
 58        /// <summary>
 59        /// Gets the URL to Bing's search result for this item.
 60        /// </summary>
 61        [JsonProperty(PropertyName = "webSearchUrl")]
 062        public string WebSearchUrl { get; private set; }
 63
 64        /// <summary>
 65        /// </summary>
 66        [JsonProperty(PropertyName = "potentialAction")]
 067        public IList<Action> PotentialAction { get; private set; }
 68
 69        /// <summary>
 70        /// </summary>
 71        [JsonProperty(PropertyName = "immediateAction")]
 072        public IList<Action> ImmediateAction { get; private set; }
 73
 74        /// <summary>
 75        /// </summary>
 76        [JsonProperty(PropertyName = "preferredClickthroughUrl")]
 077        public string PreferredClickthroughUrl { get; private set; }
 78
 79        /// <summary>
 80        /// </summary>
 81        [JsonProperty(PropertyName = "adaptiveCard")]
 082        public string AdaptiveCard { get; private set; }
 83
 84    }
 85}