private static async Task <Response <AnalyzeSentimentResultCollection> > CreateAnalyzeSentimentResponseAsync(Response response, IDictionary <string, int> idToIndexMap, CancellationToken cancellation) { AnalyzeSentimentResultCollection result = await TextAnalyticsServiceSerializer.DeserializeAnalyzeSentimentResponseAsync(response.ContentStream, idToIndexMap, cancellation).ConfigureAwait(false); return(Response.FromValue(result, response)); }
/// <summary> /// Intended for mocking purposes only. /// </summary> internal AnalyzeSentimentActionResult( AnalyzeSentimentResultCollection result, DateTimeOffset completedOn) : base(completedOn) { _documentsResults = result; }
internal AnalyzeSentimentActionResult(AnalyzeSentimentResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error) { Result = result; }
public AnalyzeSentimentResultCollectionDebugView(AnalyzeSentimentResultCollection collection) { BaseCollection = collection; }