| | | 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="LinkedEntity"/> objects in a document. |
| | | 11 | | /// </summary> |
| | | 12 | | public class LinkedEntityCollection : ReadOnlyCollection<LinkedEntity> |
| | | 13 | | { |
| | | 14 | | internal LinkedEntityCollection(IList<LinkedEntity> entities, IList<TextAnalyticsWarning> warnings) |
| | 48 | 15 | | : base(entities) |
| | | 16 | | { |
| | 48 | 17 | | Warnings = new ReadOnlyCollection<TextAnalyticsWarning>(warnings); |
| | 48 | 18 | | } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Gets the warnings encountered while processing the document. |
| | | 22 | | /// </summary> |
| | 0 | 23 | | public IReadOnlyCollection<TextAnalyticsWarning> Warnings { get; } |
| | | 24 | | } |
| | | 25 | | } |