| | | 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.Collections; |
| | | 11 | | using System.Collections.Generic; |
| | | 12 | | using System.Linq; |
| | | 13 | | |
| | | 14 | | /// <summary> |
| | | 15 | | /// The Review object. |
| | | 16 | | /// </summary> |
| | | 17 | | public partial class Review |
| | | 18 | | { |
| | | 19 | | /// <summary> |
| | | 20 | | /// Initializes a new instance of the Review class. |
| | | 21 | | /// </summary> |
| | 2 | 22 | | public Review() |
| | | 23 | | { |
| | | 24 | | CustomInit(); |
| | 2 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Initializes a new instance of the Review class. |
| | | 29 | | /// </summary> |
| | | 30 | | /// <param name="reviewId">Id of the review.</param> |
| | | 31 | | /// <param name="subTeam">Name of the subteam.</param> |
| | | 32 | | /// <param name="status">The status string (<Pending, |
| | | 33 | | /// Complete>).</param> |
| | | 34 | | /// <param name="reviewerResultTags">Array of KeyValue with Reviewer |
| | | 35 | | /// set Tags.</param> |
| | | 36 | | /// <param name="createdBy">The reviewer name.</param> |
| | | 37 | | /// <param name="metadata">Array of KeyValue.</param> |
| | | 38 | | /// <param name="type">The type of content.</param> |
| | | 39 | | /// <param name="content">The content value.</param> |
| | | 40 | | /// <param name="contentId">Id of the content.</param> |
| | | 41 | | /// <param name="callbackEndpoint">The callback endpoint.</param> |
| | 0 | 42 | | public Review(string reviewId = default(string), string subTeam = default(string), string status = default(strin |
| | | 43 | | { |
| | 0 | 44 | | ReviewId = reviewId; |
| | 0 | 45 | | SubTeam = subTeam; |
| | 0 | 46 | | Status = status; |
| | 0 | 47 | | ReviewerResultTags = reviewerResultTags; |
| | 0 | 48 | | CreatedBy = createdBy; |
| | 0 | 49 | | Metadata = metadata; |
| | 0 | 50 | | Type = type; |
| | 0 | 51 | | Content = content; |
| | 0 | 52 | | ContentId = contentId; |
| | 0 | 53 | | CallbackEndpoint = callbackEndpoint; |
| | | 54 | | CustomInit(); |
| | 0 | 55 | | } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// An initialization method that performs custom operations like setting defaults |
| | | 59 | | /// </summary> |
| | | 60 | | partial void CustomInit(); |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets id of the review. |
| | | 64 | | /// </summary> |
| | | 65 | | [JsonProperty(PropertyName = "ReviewId")] |
| | 10 | 66 | | public string ReviewId { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets name of the subteam. |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "SubTeam")] |
| | 4 | 72 | | public string SubTeam { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets or sets the status string (&lt;Pending, Complete&gt;). |
| | | 76 | | /// </summary> |
| | | 77 | | [JsonProperty(PropertyName = "Status")] |
| | 6 | 78 | | public string Status { get; set; } |
| | | 79 | | |
| | | 80 | | /// <summary> |
| | | 81 | | /// Gets or sets array of KeyValue with Reviewer set Tags. |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "ReviewerResultTags")] |
| | 4 | 84 | | public IList<KeyValuePair> ReviewerResultTags { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets the reviewer name. |
| | | 88 | | /// </summary> |
| | | 89 | | [JsonProperty(PropertyName = "CreatedBy")] |
| | 6 | 90 | | public string CreatedBy { get; set; } |
| | | 91 | | |
| | | 92 | | /// <summary> |
| | | 93 | | /// Gets or sets array of KeyValue. |
| | | 94 | | /// </summary> |
| | | 95 | | [JsonProperty(PropertyName = "Metadata")] |
| | 6 | 96 | | public IList<KeyValuePair> Metadata { get; set; } |
| | | 97 | | |
| | | 98 | | /// <summary> |
| | | 99 | | /// Gets or sets the type of content. |
| | | 100 | | /// </summary> |
| | | 101 | | [JsonProperty(PropertyName = "Type")] |
| | 4 | 102 | | public string Type { get; set; } |
| | | 103 | | |
| | | 104 | | /// <summary> |
| | | 105 | | /// Gets or sets the content value. |
| | | 106 | | /// </summary> |
| | | 107 | | [JsonProperty(PropertyName = "Content")] |
| | 4 | 108 | | public string Content { get; set; } |
| | | 109 | | |
| | | 110 | | /// <summary> |
| | | 111 | | /// Gets or sets id of the content. |
| | | 112 | | /// </summary> |
| | | 113 | | [JsonProperty(PropertyName = "ContentId")] |
| | 4 | 114 | | public string ContentId { get; set; } |
| | | 115 | | |
| | | 116 | | /// <summary> |
| | | 117 | | /// Gets or sets the callback endpoint. |
| | | 118 | | /// </summary> |
| | | 119 | | [JsonProperty(PropertyName = "CallbackEndpoint")] |
| | 0 | 120 | | public string CallbackEndpoint { get; set; } |
| | | 121 | | |
| | | 122 | | } |
| | | 123 | | } |