| | 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 | | /// Phone Property details. |
| | 14 | | /// </summary> |
| | 15 | | public partial class Phone |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// Initializes a new instance of the Phone class. |
| | 19 | | /// </summary> |
| 0 | 20 | | public Phone() |
| | 21 | | { |
| | 22 | | CustomInit(); |
| 0 | 23 | | } |
| | 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> |
| 0 | 33 | | public Phone(string countryCode = default(string), string text = default(string), int? index = default(int?)) |
| | 34 | | { |
| 0 | 35 | | CountryCode = countryCode; |
| 0 | 36 | | Text = text; |
| 0 | 37 | | Index = index; |
| | 38 | | CustomInit(); |
| 0 | 39 | | } |
| | 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")] |
| 0 | 50 | | public string CountryCode { get; set; } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// Gets or sets detected Phone number. |
| | 54 | | /// </summary> |
| | 55 | | [JsonProperty(PropertyName = "Text")] |
| 0 | 56 | | 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")] |
| 0 | 63 | | public int? Index { get; set; } |
| | 64 | |
|
| | 65 | | } |
| | 66 | | } |