| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | public partial class SentimentBatchResultItem |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the SentimentBatchResultItem class. |
| | 20 | | /// </summary> |
| 4 | 21 | | public SentimentBatchResultItem() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 4 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the SentimentBatchResultItem class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="id">Unique, non-empty document identifier.</param> |
| | 30 | | /// <param name="score">A decimal number between 0 and 1 denoting the |
| | 31 | | /// sentiment of the document. A score above 0.7 usually refers to a |
| | 32 | | /// positive document while a score below 0.3 normally has a negative |
| | 33 | | /// connotation. Mid values refer to neutral text.</param> |
| | 34 | | /// <param name="statistics">(Optional) if showStats=true was specified |
| | 35 | | /// in the request this field will contain information about the |
| | 36 | | /// document payload.</param> |
| 0 | 37 | | public SentimentBatchResultItem(string id = default(string), double? score = default(double?), DocumentStatistic |
| | 38 | | { |
| 0 | 39 | | Id = id; |
| 0 | 40 | | Score = score; |
| 0 | 41 | | Statistics = statistics; |
| | 42 | | CustomInit(); |
| 0 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | 47 | | /// </summary> |
| | 48 | | partial void CustomInit(); |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets or sets unique, non-empty document identifier. |
| | 52 | | /// </summary> |
| | 53 | | [JsonProperty(PropertyName = "id")] |
| 0 | 54 | | public string Id { get; set; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets a decimal number between 0 and 1 denoting the |
| | 58 | | /// sentiment of the document. A score above 0.7 usually refers to a |
| | 59 | | /// positive document while a score below 0.3 normally has a negative |
| | 60 | | /// connotation. Mid values refer to neutral text. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "score")] |
| 8 | 63 | | public double? Score { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets (Optional) if showStats=true was specified in the |
| | 67 | | /// request this field will contain information about the document |
| | 68 | | /// payload. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "statistics")] |
| 0 | 71 | | public DocumentStatistics Statistics { get; set; } |
| | 72 | |
|
| | 73 | | } |
| | 74 | | } |