C# Класс GSF.Media.Sound.TouchTone

Touch tone generator.
Наследование: DTMF
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
TouchTone System
TryParseKey bool

Открытые методы

Метод Описание
GetTouchTones ( string keys ) : GSF.Media.Sound.DTMF[]

Get array of touch tones for given string.

Non-touch tone characters are ignored. Commas are interpreted as a one second pause.

GetTouchTones ( string keys, double keyDuration, double interKeyPause ) : GSF.Media.Sound.DTMF[]

Get array of touch tones for given string.

Non-touch tone characters are ignored. Commas are interpreted as a one second pause.

Parse ( char key ) : TouchTone

Converts the character representation of a touch tone key into an instance of the TouchTone class.

TouchTone ( Char key ) : System

Constructs a new TouchTone for specified touch tone key character.

TouchTone ( TouchToneKey key ) : System

Constructs a new TouchTone for specified touch tone key.

TouchTone ( int key ) : System

Constructs a new TouchTone for specified touch tone key number.

TryParse ( char key, TouchTone &result ) : bool

Converts the character representation of a touch tone key into an instance of the TouchTone class. A return value indicates whether the conversion succeeded.

Приватные методы

Метод Описание
TouchTone ( ) : System
TryParseKey ( char key, TouchToneKey &result ) : bool

Описание методов

GetTouchTones() публичный статический Метод

Get array of touch tones for given string.
Non-touch tone characters are ignored. Commas are interpreted as a one second pause.
public static GetTouchTones ( string keys ) : GSF.Media.Sound.DTMF[]
keys string String of touch tone characters to convert to touch tones.
Результат GSF.Media.Sound.DTMF[]

GetTouchTones() публичный статический Метод

Get array of touch tones for given string.
Non-touch tone characters are ignored. Commas are interpreted as a one second pause.
public static GetTouchTones ( string keys, double keyDuration, double interKeyPause ) : GSF.Media.Sound.DTMF[]
keys string String of touch tone characters to convert to touch tones.
keyDuration double Duration of touch tone key press in seconds, typically fractional.
interKeyPause double Time to wait between key presses in seconds, typically fractional.
Результат GSF.Media.Sound.DTMF[]

Parse() публичный статический Метод

Converts the character representation of a touch tone key into an instance of the TouchTone class.
is not a valid touch tone character.
public static Parse ( char key ) : TouchTone
key char A character containing a touch tone key to convert.
Результат TouchTone

TouchTone() публичный Метод

Constructs a new TouchTone for specified touch tone key character.
is not a valid touch tone character.
public TouchTone ( Char key ) : System
key Char Character of touch tone to create.
Результат System

TouchTone() публичный Метод

Constructs a new TouchTone for specified touch tone key.
public TouchTone ( TouchToneKey key ) : System
key TouchToneKey Touch tone to create.
Результат System

TouchTone() публичный Метод

Constructs a new TouchTone for specified touch tone key number.
is not a valid touch tone number.
public TouchTone ( int key ) : System
key int Number of touch tone to create (note that * = 10 and # = 11).
Результат System

TryParse() публичный статический Метод

Converts the character representation of a touch tone key into an instance of the TouchTone class. A return value indicates whether the conversion succeeded.
public static TryParse ( char key, TouchTone &result ) : bool
key char A character containing a touch tone key to convert.
result TouchTone /// When this method returns, contains an instance of the /// class equivalent to the touch tone key, if the conversion succeeded, or null /// if the conversion failed. The conversion fails if the /// parameter is not a valid touch tone.
Результат bool