Ejemplo n.º 1
0
 internal DetectLanguageResult(string id, TextDocumentStatistics statistics, DetectedLanguage detectedLanguage)
     : base(id, statistics)
 {
     _primaryLanguage = detectedLanguage;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="TextAnalytics.DetectLanguageResult"/> for mocking purposes.
 /// </summary>
 /// <param name="id">Sets the <see cref="TextAnalyticsResult.Id"/> property.</param>
 /// <param name="statistics">Sets the <see cref="TextAnalyticsResult.Statistics"/> property.</param>
 /// <param name="detectedLanguage">Sets the <see cref="TextAnalytics.DetectedLanguage"/> property.</param>
 /// <returns>A new instance of <see cref="TextAnalytics.DetectLanguageResult"/> for mocking purposes.</returns>
 public static DetectLanguageResult DetectLanguageResult(string id, TextDocumentStatistics statistics, DetectedLanguage detectedLanguage)
 {
     return(new DetectLanguageResult(id, statistics, detectedLanguage));
 }
Ejemplo n.º 3
0
 private static Response <DetectedLanguage> CreateDetectedLanguageResponseSimple(Response response, DetectedLanguage detectedLanguage) =>
 Response.FromValue(detectedLanguage, response);