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