mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: add IDtmfDecode interface and DtmfReceivedEventArgs class for DTMF digit handling
This commit is contained in:
parent
56208342c9
commit
dac5325ecf
1 changed files with 19 additions and 0 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue