| | | 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 | | |
| | | 7 | | namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models |
| | | 8 | | { |
| | | 9 | | using Newtonsoft.Json; |
| | | 10 | | using System.Linq; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// Email Address details. |
| | | 14 | | /// </summary> |
| | | 15 | | public partial class Email |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Initializes a new instance of the Email class. |
| | | 19 | | /// </summary> |
| | 0 | 20 | | public Email() |
| | | 21 | | { |
| | | 22 | | CustomInit(); |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the Email class. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="detected">Detected Email Address from the input text |
| | | 29 | | /// content.</param> |
| | | 30 | | /// <param name="subType">Subtype of the detected Email |
| | | 31 | | /// Address.</param> |
| | | 32 | | /// <param name="text">Email Address in the input text content.</param> |
| | | 33 | | /// <param name="index">Index(Location) of the Email address in the |
| | | 34 | | /// input text content.</param> |
| | 0 | 35 | | public Email(string detected = default(string), string subType = default(string), string text = default(string), |
| | | 36 | | { |
| | 0 | 37 | | Detected = detected; |
| | 0 | 38 | | SubType = subType; |
| | 0 | 39 | | Text = text; |
| | 0 | 40 | | Index = index; |
| | | 41 | | CustomInit(); |
| | 0 | 42 | | } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | | 46 | | /// </summary> |
| | | 47 | | partial void CustomInit(); |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Gets or sets detected Email Address from the input text content. |
| | | 51 | | /// </summary> |
| | | 52 | | [JsonProperty(PropertyName = "Detected")] |
| | 0 | 53 | | public string Detected { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// Gets or sets subtype of the detected Email Address. |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "SubType")] |
| | 0 | 59 | | public string SubType { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// Gets or sets email Address in the input text content. |
| | | 63 | | /// </summary> |
| | | 64 | | [JsonProperty(PropertyName = "Text")] |
| | 0 | 65 | | public string Text { get; set; } |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets index(Location) of the Email address in the input text |
| | | 69 | | /// content. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "Index")] |
| | 0 | 72 | | public int? Index { get; set; } |
| | | 73 | | |
| | | 74 | | } |
| | | 75 | | } |