< Summary

Class:Microsoft.Azure.CognitiveServices.ContentModerator.Models.Phone
Assembly:Microsoft.Azure.CognitiveServices.Vision.ContentModerator
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\Phone.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:66
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_CountryCode()-0%100%
get_Text()-0%100%
get_Index()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\Phone.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.ContentModerator.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    /// <summary>
 13    /// Phone Property details.
 14    /// </summary>
 15    public partial class Phone
 16    {
 17        /// <summary>
 18        /// Initializes a new instance of the Phone class.
 19        /// </summary>
 020        public Phone()
 21        {
 22            CustomInit();
 023        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the Phone class.
 27        /// </summary>
 28        /// <param name="countryCode">CountryCode of the detected Phone
 29        /// number.</param>
 30        /// <param name="text">Detected Phone number.</param>
 31        /// <param name="index">Index(Location) of the Phone number in the
 32        /// input text content.</param>
 033        public Phone(string countryCode = default(string), string text = default(string), int? index = default(int?))
 34        {
 035            CountryCode = countryCode;
 036            Text = text;
 037            Index = index;
 38            CustomInit();
 039        }
 40
 41        /// <summary>
 42        /// An initialization method that performs custom operations like setting defaults
 43        /// </summary>
 44        partial void CustomInit();
 45
 46        /// <summary>
 47        /// Gets or sets countryCode of the detected Phone number.
 48        /// </summary>
 49        [JsonProperty(PropertyName = "CountryCode")]
 050        public string CountryCode { get; set; }
 51
 52        /// <summary>
 53        /// Gets or sets detected Phone number.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "Text")]
 056        public string Text { get; set; }
 57
 58        /// <summary>
 59        /// Gets or sets index(Location) of the Phone number in the input text
 60        /// content.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "Index")]
 063        public int? Index { get; set; }
 64
 65    }
 66}