2024-11-12 22:51:33 +00:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.Twilio.Models;
|
|
|
|
|
|
|
|
|
|
public class ConversationalVoiceRequest : VoiceRequest
|
|
|
|
|
{
|
2025-02-27 04:52:14 +00:00
|
|
|
[FromQuery(Name = "agent-id")]
|
2025-03-10 15:10:22 +00:00
|
|
|
public string AgentId { get; set; } = string.Empty;
|
2025-02-27 04:52:14 +00:00
|
|
|
|
2025-03-13 19:05:06 +00:00
|
|
|
[FromQuery(Name = "conversation-id")]
|
2025-03-10 15:10:22 +00:00
|
|
|
public string ConversationId { get; set; } = string.Empty;
|
2024-11-12 22:51:33 +00:00
|
|
|
|
|
|
|
|
[FromRoute]
|
|
|
|
|
public int SeqNum { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Attempts { get; set; } = 1;
|
2025-03-10 15:10:22 +00:00
|
|
|
public int AIResponseWaitTime { get; set; } = 0;
|
|
|
|
|
public string? AIResponseErrorMessage { get; set; } = string.Empty;
|
2024-11-12 22:51:33 +00:00
|
|
|
|
2025-03-10 15:10:22 +00:00
|
|
|
public string Intent { get; set; } = string.Empty;
|
2025-03-13 19:05:06 +00:00
|
|
|
|
|
|
|
|
[FromQuery(Name = "init-audio-file")]
|
2025-03-13 00:20:30 +00:00
|
|
|
public string? InitAudioFile { get; set; }
|
2024-11-12 22:51:33 +00:00
|
|
|
|
|
|
|
|
public List<string> States { get; set; } = [];
|
2025-03-13 19:05:06 +00:00
|
|
|
|
|
|
|
|
[FromForm]
|
|
|
|
|
public string? CallbackSource { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// machine_start
|
|
|
|
|
/// </summary>
|
|
|
|
|
[FromForm]
|
|
|
|
|
public string? AnsweredBy { get; set; }
|
|
|
|
|
|
|
|
|
|
[FromForm]
|
|
|
|
|
public int MachineDetectionDuration { get; set; }
|
|
|
|
|
|
|
|
|
|
[FromForm]
|
|
|
|
|
public int Duration { get; set; }
|
|
|
|
|
|
|
|
|
|
[FromForm]
|
|
|
|
|
public int CallDuration { get; set; }
|
2024-11-12 22:51:33 +00:00
|
|
|
}
|