Documentation ¶
Index ¶
- type ChainDigits
- func (digits *ChainDigits) CollectInput() (string, error)
- func (digits *ChainDigits) Do()
- func (digits *ChainDigits) Play(file string) *ChainDigits
- func (digits *ChainDigits) Question(question string) (bool, error)
- func (digits *ChainDigits) SetDigitTimeout(t uint16)
- func (digits *ChainDigits) SetFinishOnKey(k uint8)
- func (digits *ChainDigits) SetInvalidDigitsSound(s string)
- func (digits *ChainDigits) SetNumDigits(n int)
- func (digits *ChainDigits) SetPlayBeep(b bool)
- func (digits *ChainDigits) SetRetries(n uint8)
- func (digits *ChainDigits) SetTimeout(t uint16)
- func (digits *ChainDigits) SetValidDigits(s string)
- func (digits *ChainDigits) Speak(phrase string) *ChainDigits
- func (digits *ChainDigits) Wait(seconds int) *ChainDigits
- type ChainableDigits
- type CommandChainable
- type RunnerChainable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainDigits ¶
type ChainDigits struct {
// contains filtered or unexported fields
}
Permite Concatenar acciones alrededor del GetDigits Esto simula el GetDigits de *plivoframework* :) Ej: chain := NewChainDigits(call) chain.SetTimeout(10) chain.Play("mi audio").Play("Then other.wav").Reply() //get response
func NewChainDigits ¶
func NewChainDigits(call *glivo.Call) *ChainDigits
func (*ChainDigits) CollectInput ¶
func (digits *ChainDigits) CollectInput() (string, error)
Espera digitos, y colecion al final retonar toda la secuencia digitada
func (*ChainDigits) Do ¶
func (digits *ChainDigits) Do()
Espera digitos, y colecion al final retonar toda la secuencia digitada
func (*ChainDigits) Play ¶
func (digits *ChainDigits) Play(file string) *ChainDigits
Reproduce archivo local al servidor Freeswitch
func (*ChainDigits) Question ¶
func (digits *ChainDigits) Question(question string) (bool, error)
Espera que se responda con los digitos indicados y retorna si o no
func (*ChainDigits) SetDigitTimeout ¶
func (digits *ChainDigits) SetDigitTimeout(t uint16)
func (*ChainDigits) SetFinishOnKey ¶
func (digits *ChainDigits) SetFinishOnKey(k uint8)
func (*ChainDigits) SetInvalidDigitsSound ¶
func (digits *ChainDigits) SetInvalidDigitsSound(s string)
func (*ChainDigits) SetNumDigits ¶
func (digits *ChainDigits) SetNumDigits(n int)
func (*ChainDigits) SetPlayBeep ¶
func (digits *ChainDigits) SetPlayBeep(b bool)
func (*ChainDigits) SetRetries ¶
func (digits *ChainDigits) SetRetries(n uint8)
func (*ChainDigits) SetTimeout ¶
func (digits *ChainDigits) SetTimeout(t uint16)
func (*ChainDigits) SetValidDigits ¶
func (digits *ChainDigits) SetValidDigits(s string)
func (*ChainDigits) Speak ¶
func (digits *ChainDigits) Speak(phrase string) *ChainDigits
func (*ChainDigits) Wait ¶
func (digits *ChainDigits) Wait(seconds int) *ChainDigits
type ChainableDigits ¶
type ChainableDigits interface { Play(files string) ChainDigits Speak(phrase string) ChainDigits Wait(seconds int) ChainDigits }
type CommandChainable ¶
type CommandChainable struct {
// contains filtered or unexported fields
}
type RunnerChainable ¶
Click to show internal directories.
Click to hide internal directories.