feat: add IDtmfDecode interface and DtmfReceivedEventArgs class for DTMF digit handling

This commit is contained in:
Neil Dorin 2026-07-23 08:47:57 -06:00
parent 56208342c9
commit dac5325ecf

View file

@ -0,0 +1,19 @@
namespace PepperDash.Essentials.Devices.Common.AudioCodec;
public interface IDtmfDecode
{
/// <summary>
/// Event fired when a DTMF digit is received
/// </summary>
event EventHandler<DtmfReceivedEventArgs> DtmfReceived;
}
public class DtmfReceivedEventArgs : EventArgs
{
public string Digit { get; private set; }
public DtmfReceivedEventArgs(string digit)
{
Digit = digit;
}
}