Telnyx activity fixes and updates

This commit is contained in:
Sipke Schoorstra 2023-08-02 10:19:35 +02:00
parent 43fd0a8df6
commit c8dd70693e
4 changed files with 18 additions and 3 deletions

View file

@ -46,6 +46,12 @@ public class FlowAnswerCall : AnswerCallBase
[PublicAPI]
public class AnswerCall : AnswerCallBase
{
/// <inheritdoc />
[JsonConstructor]
public AnswerCall()
{
}
/// <inheritdoc />
public AnswerCall([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
{

View file

@ -61,7 +61,7 @@ public class Dial : CodeActivity<DialResponse>
public Input<string?> AnsweringMachineDetection { get; set; } = new("disabled");
/// <summary>
/// Enables answering machine detection.
/// Start recording automatically after an event. Disabled by default.
/// </summary>
[Input(Description = "Start recording automatically after an event. Disabled by default.")]
public Input<bool> Record { get; set; } = default!;

View file

@ -29,7 +29,6 @@ public class FlowStartRecording : StartRecordingBase
}
/// <inheritdoc />
[JsonConstructor]
public FlowStartRecording([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
{
}

View file

@ -1,7 +1,17 @@
namespace Elsa.Telnyx;
internal static class Constants
/// <summary>
/// Contains constants used by the Telnyx activities.
/// </summary>
public static class Constants
{
/// <summary>
/// The namespace used by the Telnyx activities.
/// </summary>
public const string Namespace = "Telnyx";
/// <summary>
/// The category used by the Telnyx activities.
/// </summary>
public const string Category = "Telnyx";
}