| | | 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 | | /// The classification details of the text. |
| | | 14 | | /// </summary> |
| | | 15 | | public partial class Classification |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Initializes a new instance of the Classification class. |
| | | 19 | | /// </summary> |
| | 0 | 20 | | public Classification() |
| | | 21 | | { |
| | | 22 | | CustomInit(); |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the Classification class. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="category1">The category1 score details of the text. |
| | | 29 | | /// <a href="https://aka.ms/textClassifyCategories">Click |
| | | 30 | | /// here</a> for more details on category classification.</param> |
| | | 31 | | /// <param name="category2">The category2 score details of the text. |
| | | 32 | | /// <a href="https://aka.ms/textClassifyCategories">Click |
| | | 33 | | /// here</a> for more details on category classification.</param> |
| | | 34 | | /// <param name="category3">The category3 score details of the text. |
| | | 35 | | /// <a href="https://aka.ms/textClassifyCategories">Click |
| | | 36 | | /// here</a> for more details on category classification.</param> |
| | | 37 | | /// <param name="reviewRecommended">The review recommended |
| | | 38 | | /// flag.</param> |
| | 0 | 39 | | public Classification(ClassificationCategory1 category1 = default(ClassificationCategory1), ClassificationCatego |
| | | 40 | | { |
| | 0 | 41 | | Category1 = category1; |
| | 0 | 42 | | Category2 = category2; |
| | 0 | 43 | | Category3 = category3; |
| | 0 | 44 | | ReviewRecommended = reviewRecommended; |
| | | 45 | | CustomInit(); |
| | 0 | 46 | | } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | | 50 | | /// </summary> |
| | | 51 | | partial void CustomInit(); |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets the category1 score details of the text. &lt;a |
| | | 55 | | /// href="https://aka.ms/textClassifyCategories"&gt;Click |
| | | 56 | | /// here&lt;/a&gt; for more details on category classification. |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "Category1")] |
| | 0 | 59 | | public ClassificationCategory1 Category1 { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// Gets or sets the category2 score details of the text. &lt;a |
| | | 63 | | /// href="https://aka.ms/textClassifyCategories"&gt;Click |
| | | 64 | | /// here&lt;/a&gt; for more details on category classification. |
| | | 65 | | /// </summary> |
| | | 66 | | [JsonProperty(PropertyName = "Category2")] |
| | 0 | 67 | | public ClassificationCategory2 Category2 { get; set; } |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets or sets the category3 score details of the text. &lt;a |
| | | 71 | | /// href="https://aka.ms/textClassifyCategories"&gt;Click |
| | | 72 | | /// here&lt;/a&gt; for more details on category classification. |
| | | 73 | | /// </summary> |
| | | 74 | | [JsonProperty(PropertyName = "Category3")] |
| | 0 | 75 | | public ClassificationCategory3 Category3 { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets the review recommended flag. |
| | | 79 | | /// </summary> |
| | | 80 | | [JsonProperty(PropertyName = "ReviewRecommended")] |
| | 0 | 81 | | public bool? ReviewRecommended { get; set; } |
| | | 82 | | |
| | | 83 | | } |
| | | 84 | | } |