| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.AI.TextAnalytics.Models; |
| | 5 | |
|
| | 6 | | namespace Azure.AI.TextAnalytics |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Text Analytics Warning. |
| | 10 | | /// </summary> |
| | 11 | | public struct TextAnalyticsWarning |
| | 12 | | { |
| | 13 | | internal TextAnalyticsWarning(string code, string message) |
| | 14 | | { |
| 4 | 15 | | WarningCode = code; |
| 4 | 16 | | Message = message; |
| 4 | 17 | | } |
| | 18 | |
|
| | 19 | | internal TextAnalyticsWarning(TextAnalyticsWarning_internal warning) |
| | 20 | | { |
| 0 | 21 | | WarningCode = warning.Code; |
| 0 | 22 | | Message = warning.Message; |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Code indicating the type of warning. |
| | 27 | | /// </summary> |
| 4 | 28 | | public TextAnalyticsWarningCode WarningCode { get; } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Message that contains more information about the reason of the warning. |
| | 32 | | /// </summary> |
| 0 | 33 | | public string Message { get; } |
| | 34 | | } |
| | 35 | | } |