/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using Meta.Voice;
using Meta.WitAi.Json;
namespace Meta.WitAi.Requests
{
public class VoiceServiceRequestResults
: INLPTextRequestResults, INLPAudioRequestResults
{
///
/// Request status code if applicable
///
public int StatusCode { get; internal set; }
///
/// Request cancelation/error message
///
public string Message { get; private set; }
///
/// Response transcription
///
public string Transcription { get; internal set; }
///
/// Response transcription
///
public bool IsFinalTranscription { get; internal set; }
///
/// Response transcription
///
public string[] FinalTranscriptions { get; internal set; }
///
/// Parsed json response data
///
public WitResponseNode ResponseData { get; internal set; }
///
/// Default constructor without message
///
public VoiceServiceRequestResults()
{
Message = string.Empty;
}
///
/// Constructor with a specific message
///
public VoiceServiceRequestResults(string newMessage)
{
Message = newMessage;
}
}
}