< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Status()-0%100%
get_Metadata()-0%100%
get_TrackingId()-0%100%
get_CacheId()-0%100%
get_Language()-0%100%
get_Text()-0%100%
get_Candidates()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\OCR.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.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    /// <summary>
 15    /// Contains the text found in image for the language specified.
 16    /// </summary>
 17    public partial class OCR
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the OCR class.
 21        /// </summary>
 022        public OCR()
 23        {
 24            CustomInit();
 025        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the OCR class.
 29        /// </summary>
 30        /// <param name="status">The evaluate status</param>
 31        /// <param name="metadata">Array of KeyValue.</param>
 32        /// <param name="trackingId">The tracking id.</param>
 33        /// <param name="cacheId">The cache id.</param>
 34        /// <param name="language">The ISO 639-3 code.</param>
 35        /// <param name="text">The found text.</param>
 36        /// <param name="candidates">The list of candidate text.</param>
 037        public OCR(Status status = default(Status), IList<KeyValuePair> metadata = default(IList<KeyValuePair>), string 
 38        {
 039            Status = status;
 040            Metadata = metadata;
 041            TrackingId = trackingId;
 042            CacheId = cacheId;
 043            Language = language;
 044            Text = text;
 045            Candidates = candidates;
 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        /// Gets or sets the evaluate status
 56        /// </summary>
 57        [JsonProperty(PropertyName = "Status")]
 058        public Status Status { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets array of KeyValue.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "Metadata")]
 064        public IList<KeyValuePair> Metadata { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets the tracking id.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "TrackingId")]
 070        public string TrackingId { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets the cache id.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "CacheId")]
 076        public string CacheId { get; set; }
 77
 78        /// <summary>
 79        /// Gets or sets the ISO 639-3 code.
 80        /// </summary>
 81        [JsonProperty(PropertyName = "Language")]
 082        public string Language { get; set; }
 83
 84        /// <summary>
 85        /// Gets or sets the found text.
 86        /// </summary>
 87        [JsonProperty(PropertyName = "Text")]
 088        public string Text { get; set; }
 89
 90        /// <summary>
 91        /// Gets or sets the list of candidate text.
 92        /// </summary>
 93        [JsonProperty(PropertyName = "Candidates")]
 094        public IList<Candidate> Candidates { get; set; }
 95
 96    }
 97}