| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Collections.Generic; |
| | 5 | | using System.Collections.ObjectModel; |
| | 6 | |
|
| | 7 | | namespace Azure.AI.TextAnalytics |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Collection of <see cref="CategorizedEntity"/> objects in a document. |
| | 11 | | /// </summary> |
| | 12 | | public class CategorizedEntityCollection : ReadOnlyCollection<CategorizedEntity> |
| | 13 | | { |
| | 14 | | internal CategorizedEntityCollection(IList<CategorizedEntity> entities, IList<TextAnalyticsWarning> warnings) |
| 84 | 15 | | : base(entities) |
| | 16 | | { |
| 84 | 17 | | Warnings = new ReadOnlyCollection<TextAnalyticsWarning>(warnings); |
| 84 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Warnings encountered while processing the document. |
| | 22 | | /// </summary> |
| 16 | 23 | | public IReadOnlyCollection<TextAnalyticsWarning> Warnings { get; } |
| | 24 | | } |
| | 25 | | } |