| | 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 | | /// Detected Terms details. |
| | 14 | | /// </summary> |
| | 15 | | public partial class DetectedTerms |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// Initializes a new instance of the DetectedTerms class. |
| | 19 | | /// </summary> |
| 0 | 20 | | public DetectedTerms() |
| | 21 | | { |
| | 22 | | CustomInit(); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Initializes a new instance of the DetectedTerms class. |
| | 27 | | /// </summary> |
| | 28 | | /// <param name="index">Index(Location) of the detected profanity term |
| | 29 | | /// in the input text content.</param> |
| | 30 | | /// <param name="originalIndex">Original Index(Location) of the |
| | 31 | | /// detected profanity term in the input text content.</param> |
| | 32 | | /// <param name="listId">Matched Terms list Id.</param> |
| | 33 | | /// <param name="term">Detected profanity term.</param> |
| 0 | 34 | | public DetectedTerms(int? index = default(int?), int? originalIndex = default(int?), int? listId = default(int?) |
| | 35 | | { |
| 0 | 36 | | Index = index; |
| 0 | 37 | | OriginalIndex = originalIndex; |
| 0 | 38 | | ListId = listId; |
| 0 | 39 | | Term = term; |
| | 40 | | CustomInit(); |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | 45 | | /// </summary> |
| | 46 | | partial void CustomInit(); |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets or sets index(Location) of the detected profanity term in the |
| | 50 | | /// input text content. |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "Index")] |
| 0 | 53 | | public int? Index { get; set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets original Index(Location) of the detected profanity |
| | 57 | | /// term in the input text content. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "OriginalIndex")] |
| 0 | 60 | | public int? OriginalIndex { get; set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets or sets matched Terms list Id. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "ListId")] |
| 0 | 66 | | public int? ListId { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets detected profanity term. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "Term")] |
| 0 | 72 | | public string Term { get; set; } |
| | 73 | |
|
| | 74 | | } |
| | 75 | | } |