| | | 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="AnalyzeSentimentResult"/> objects corresponding |
| | | 11 | | /// to a batch of documents, and information about the batch operation. |
| | | 12 | | /// </summary> |
| | | 13 | | public class AnalyzeSentimentResultCollection : ReadOnlyCollection<AnalyzeSentimentResult> |
| | | 14 | | { |
| | 28 | 15 | | internal AnalyzeSentimentResultCollection(IList<AnalyzeSentimentResult> list, TextDocumentBatchStatistics statis |
| | | 16 | | { |
| | 28 | 17 | | Statistics = statistics; |
| | 28 | 18 | | ModelVersion = modelVersion; |
| | 28 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets statistics about the documents and how it was processed |
| | | 23 | | /// by the service. This property will have a value when IncludeStatistics |
| | | 24 | | /// is set to true in the client call. |
| | | 25 | | /// </summary> |
| | 32 | 26 | | public TextDocumentBatchStatistics Statistics { get; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets the version of the Text Analytics model used by this operation |
| | | 30 | | /// on this batch of documents. |
| | | 31 | | /// </summary> |
| | 0 | 32 | | public string ModelVersion { get; } |
| | | 33 | | } |
| | | 34 | | } |