verbs

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect struct {
	XMLName xml.Name `xml:"Connect"`

	*ConnectAttributes

	Children []interface{}
}

func (*Connect) Autopilot

func (c *Connect) Autopilot(name string)

func (*Connect) Room

func (c *Connect) Room(name string)

func (*Connect) RoomWithAttributes

func (c *Connect) RoomWithAttributes(attributes nouns.RoomAttributes, name string)

func (*Connect) Stream

func (c *Connect) Stream() *nouns.Stream

func (*Connect) StreamWithAttributes

func (c *Connect) StreamWithAttributes(attributes nouns.StreamAttributes) *nouns.Stream

type ConnectAttributes

type ConnectAttributes struct {
	Action *string `xml:"action,attr,omitempty"`
	Method *string `xml:"method,attr,omitempty"`
}

type Dial

type Dial struct {
	XMLName xml.Name `xml:"Dial"`
	Text    *string  `xml:",chardata"`

	DialAttributes
	Children []interface{}
}

func (*Dial) Client

func (d *Dial) Client(identity *string) *nouns.Client

func (*Dial) ClientWithAttributes

func (d *Dial) ClientWithAttributes(attributes nouns.ClientAttributes, identity *string) *nouns.Client

func (*Dial) Conference

func (d *Dial) Conference(name string)

func (*Dial) ConferenceWithAttributes

func (d *Dial) ConferenceWithAttributes(attributes nouns.ConferenceAttributes, name string)

func (*Dial) Number

func (d *Dial) Number(phoneNumber string)

func (*Dial) NumberWithAttributes

func (d *Dial) NumberWithAttributes(attributes nouns.NumberAttributes, phoneNumber string)

func (*Dial) Queue

func (d *Dial) Queue(name string)

func (*Dial) QueueWithAttributes

func (d *Dial) QueueWithAttributes(attributes nouns.QueueAttributes, name string)

func (*Dial) Sim

func (d *Dial) Sim(simSid string)

func (*Dial) Sip

func (d *Dial) Sip(sipURL string)

func (*Dial) SipWithAttributes

func (d *Dial) SipWithAttributes(attributes nouns.SipAttributes, sipURL string)

type DialAttributes

type DialAttributes struct {
	Action                        *string `xml:"action,attr,omitempty"`
	AnswerOnBridge                *bool   `xml:"answerOnBridge,attr,omitempty"`
	CallerID                      *string `xml:"callerId,attr,omitempty"`
	CallReason                    *string `xml:"callReason,attr,omitempty"`
	HangupOnStar                  *bool   `xml:"hangupOnStar,attr,omitempty"`
	Method                        *string `xml:"method,attr,omitempty"`
	Record                        *string `xml:"record,attr,omitempty"`
	RecordingStatusCallback       *string `xml:"recordingStatusCallback,attr,omitempty"`
	RecordingStatusCallbackEvent  *string `xml:"recordingStatusCallbackEvent,attr,omitempty"`
	RecordingStatusCallbackMethod *string `xml:"recordingStatusCallbackMethod,attr,omitempty"`
	RecordingTrack                *string `xml:"recordingTrack,attr,omitempty"`
	Sequential                    *bool   `xml:"sequential,attr,omitempty"`
	RingTone                      *string `xml:"ringTone,attr,omitempty"`
	TimeLimit                     *int    `xml:"timeLimit,attr,omitempty"`
	Timeout                       *int    `xml:"timeout,attr,omitempty"`
	Trim                          *int    `xml:"trim,attr,omitempty"`
}

type Enqueue

type Enqueue struct {
	XMLName xml.Name `xml:"Enqueue"`
	Text    *string  `xml:",chardata"`

	EnqueueAttributes

	Children []interface{}
}

func (*Enqueue) Task

func (c *Enqueue) Task(body string)

func (*Enqueue) TaskWithAttributes

func (c *Enqueue) TaskWithAttributes(attributes nouns.TaskAttributes, body string)

type EnqueueAttributes

type EnqueueAttributes struct {
	Action        *string `xml:"action,attr,omitempty"`
	Method        *string `xml:"method,attr,omitempty"`
	WaitURL       *string `xml:"waitUrl,attr,omitempty"`
	WaitURLMethod *string `xml:"waitUrlMethod,attr,omitempty"`
	WorkflowSid   *string `xml:"workflowSid,attr,omitempty"`
}

type Gather

type Gather struct {
	XMLName xml.Name `xml:"Gather"`

	*GatherAttributes

	Children []interface{}
}

func (*Gather) Pause

func (g *Gather) Pause()

func (*Gather) PauseWithAttributes

func (g *Gather) PauseWithAttributes(attributes PauseAttributes)

func (*Gather) Play

func (g *Gather) Play(url *string)

func (*Gather) PlayWithAttributes

func (g *Gather) PlayWithAttributes(attributes PlayAttributes, url *string)

func (*Gather) Say

func (g *Gather) Say(message string)

func (*Gather) SayWithAttributes

func (g *Gather) SayWithAttributes(attributes SayAttributes, message string)

type GatherAttributes

type GatherAttributes struct {
	Action                      *string `xml:"action,attr,omitempty"`
	ActionOnEmptyResult         *bool   `xml:"actionOnEmptyResult,attr,omitempty"`
	BargeIn                     *bool   `xml:"bargeIn,attr,omitempty"`
	Debug                       *bool   `xml:"debug,attr,omitempty"`
	Enhanced                    *bool   `xml:"enhanced,attr,omitempty"`
	FinishOnKey                 *string `xml:"finishOnKey,attr,omitempty"`
	Hints                       *string `xml:"hints,attr,omitempty"`
	Input                       *string `xml:"input,attr,omitempty"`
	Language                    *string `xml:"language,attr,omitempty"`
	MaxSpeechTime               *int    `xml:"maxSpeechTime,attr,omitempty"`
	Method                      *string `xml:"method,attr,omitempty"`
	NumDigits                   *int    `xml:"numDigits,attr,omitempty"`
	PartialResultCallback       *string `xml:"partialResultCallback,attr,omitempty"`
	PartialResultCallbackMethod *string `xml:"partialResultCallbackMethod,attr,omitempty"`
	ProfanityFilter             *bool   `xml:"profanityFilter,attr,omitempty"`
	SpeechModel                 *string `xml:"speechModel,attr,omitempty"`
	SpeechTimeout               *string `xml:"speechTimeout,attr,omitempty"`
	Timeout                     *int    `xml:"timeout,attr,omitempty"`
}

type Hangup

type Hangup struct {
	XMLName xml.Name `xml:"Hangup"`
}

type Leave

type Leave struct {
	XMLName xml.Name `xml:"Leave"`
}

type Pause

type Pause struct {
	XMLName xml.Name `xml:"Pause"`

	*PauseAttributes
}

type PauseAttributes

type PauseAttributes struct {
	Length *int `xml:"length,attr,omitempty"`
}

type Pay

type Pay struct {
	XMLName xml.Name `xml:"Pay"`

	*PayAttributes

	Children []interface{}
}

func (*Pay) Parameter

func (p *Pay) Parameter()

func (*Pay) ParameterWithAttributes

func (p *Pay) ParameterWithAttributes(attributes nouns.ParameterAttributes)

func (*Pay) Prompt

func (p *Pay) Prompt() *Prompt

func (*Pay) PromptWithAttributes

func (p *Pay) PromptWithAttributes(attributes PromptAttributes) *Prompt

type PayAttributes

type PayAttributes struct {
	Action               *string `xml:"action,attr,omitempty"`
	BankAccountType      *string `xml:"bankAccountType,attr,omitempty"`
	ChargeAmount         *string `xml:"chargeAmount,attr,omitempty"`
	Currency             *string `xml:"currency,attr,omitempty"`
	Description          *string `xml:"description,attr,omitempty"`
	Input                *string `xml:"input,attr,omitempty"`
	Language             *string `xml:"language,attr,omitempty"`
	MaxAttempts          *int    `xml:"maxAttempts,attr,omitempty"`
	MinPostalCodeLength  *int    `xml:"minPostalCodeLength,attr,omitempty"`
	PaymentConnector     *string `xml:"paymentConnector,attr,omitempty"`
	PaymentMethod        *string `xml:"paymentMethod,attr,omitempty"`
	PostalCode           *string `xml:"postalCode,attr,omitempty"`
	SecurityCode         *bool   `xml:"securityCode,attr,omitempty"`
	StatusCallback       *string `xml:"statusCallback,attr,omitempty"`
	StatusCallbackMethod *string `xml:"statusCallbackMethod,attr,omitempty"`
	Timeout              *int    `xml:"timeout,attr,omitempty"`
	TokenType            *string `xml:"tokenType,attr,omitempty"`
	ValidCardTypes       *string `xml:"validCardTypes,attr,omitempty"`
}

type Play

type Play struct {
	XMLName xml.Name `xml:"Play"`
	Text    *string  `xml:",chardata"`

	*PlayAttributes
}

type PlayAttributes

type PlayAttributes struct {
	Digits *string `xml:"digits,attr,omitempty"`
	Loop   *int    `xml:"loop,attr,omitempty"`
}

type Prompt

type Prompt struct {
	XMLName xml.Name `xml:"Prompt"`

	*PromptAttributes

	Children []interface{}
}

func (*Prompt) Pause

func (p *Prompt) Pause()

func (*Prompt) PauseWithAttributes

func (p *Prompt) PauseWithAttributes(attributes PauseAttributes)

func (*Prompt) Play

func (p *Prompt) Play(url *string)

func (*Prompt) Say

func (p *Prompt) Say(message string)

func (*Prompt) SayWithAttributes

func (p *Prompt) SayWithAttributes(attributes SayAttributes, message string)

type PromptAttributes

type PromptAttributes struct {
	Attempt   *int    `xml:"attempt,attr,omitempty"`
	CardType  *string `xml:"cardType,attr,omitempty"`
	ErrorType *string `xml:"errorType,attr,omitempty"`
	For       *string `xml:"for,attr,omitempty"`
}

type Record

type Record struct {
	XMLName xml.Name `xml:"Record"`

	*RecordAttributes
}

type RecordAttributes

type RecordAttributes struct {
	Action                        *string `xml:"action,attr,omitempty"`
	FinishOnKey                   *string `xml:"finishOnKey,attr,omitempty"`
	MaxLength                     *int    `xml:"maxLength,attr,omitempty"`
	Method                        *string `xml:"method,attr,omitempty"`
	PlayBeep                      *bool   `xml:"playBeep,attr,omitempty"`
	RecordingStatusCallback       *string `xml:"recordingStatusCallback,attr,omitempty"`
	RecordingStatusCallbackEvent  *string `xml:"recordingStatusCallbackEvent,attr,omitempty"`
	RecordingStatusCallbackMethod *string `xml:"recordingStatusCallbackMethod,attr,omitempty"`
	Timeout                       *int    `xml:"timeout,attr,omitempty"`
	Transcribe                    *bool   `xml:"transcribe,attr,omitempty"`
	TranscribeCallback            *string `xml:"transcribeCallback,attr,omitempty"`
	Trim                          *string `xml:"trim,attr,omitempty"`
}

type Redirect

type Redirect struct {
	XMLName xml.Name `xml:"Redirect"`
	Text    string   `xml:",chardata"`

	*RedirectAttributes
}

type RedirectAttributes

type RedirectAttributes struct {
	Method *string `xml:"method,attr,omitempty"`
}

type Refer

type Refer struct {
	XMLName xml.Name `xml:"Refer"`

	*ReferAttributes
	Children []interface{}
}

func (*Refer) ReferSip

func (r *Refer) ReferSip(sipURL string)

func (*Refer) ReferSipWithAttributes

func (r *Refer) ReferSipWithAttributes(attributes nouns.ReferSipAttributes, sipURL string)

func (*Refer) Sip

func (r *Refer) Sip(sipURL string)

func (*Refer) SipWithAttributes

func (r *Refer) SipWithAttributes(attributes nouns.SipAttributes, sipURL string)

type ReferAttributes

type ReferAttributes struct {
	Action *string `xml:"action,attr,omitempty"`
	Method *string `xml:"method,attr,omitempty"`
}

type Reject

type Reject struct {
	XMLName xml.Name `xml:"Reject"`

	*RejectAttributes
}

type RejectAttributes

type RejectAttributes struct {
	Reason *string `xml:"reason,attr,omitempty"`
}

type Say

type Say struct {
	XMLName xml.Name `xml:"Say"`
	Text    string   `xml:",chardata"`

	*SayAttributes
}

type SayAttributes

type SayAttributes struct {
	Language *string `xml:"language,attr,omitempty"`
	Loop     *int    `xml:"loop,attr,omitempty"`
	Voice    *string `xml:"voice,attr,omitempty"`
}

type Sms

type Sms struct {
	XMLName xml.Name `xml:"Sms"`
	Text    string   `xml:",chardata"`

	*SmsAttributes
}

type SmsAttributes

type SmsAttributes struct {
	Action         *string `xml:"action,attr,omitempty"`
	From           *string `xml:"from,attr,omitempty"`
	Method         *string `xml:"method,attr,omitempty"`
	StatusCallback *string `xml:"statusCallback,attr,omitempty"`
	To             *string `xml:"to,attr,omitempty"`
}

type Start

type Start struct {
	XMLName xml.Name `xml:"Start"`

	*StartAttributes

	Children []interface{}
}

func (*Start) Siprec

func (s *Start) Siprec() *nouns.Siprec

func (*Start) SiprecWithAttributes

func (s *Start) SiprecWithAttributes(attributes nouns.SiprecAttributes) *nouns.Siprec

func (*Start) Stream

func (s *Start) Stream() *nouns.Stream

func (*Start) StreamWithAttributes

func (s *Start) StreamWithAttributes(attributes nouns.StreamAttributes) *nouns.Stream

type StartAttributes

type StartAttributes struct {
	Action *string `xml:"action,attr,omitempty"`
	Method *string `xml:"method,attr,omitempty"`
}

type Stop

type Stop struct {
	XMLName xml.Name `xml:"Stop"`

	*StopAttributes

	Children []interface{}
}

func (*Stop) Siprec

func (s *Stop) Siprec() *nouns.Siprec

func (*Stop) SiprecWithAttributes

func (s *Stop) SiprecWithAttributes(attributes nouns.SiprecAttributes) *nouns.Siprec

func (*Stop) Stream

func (s *Stop) Stream() *nouns.Stream

func (*Stop) StreamWithAttributes

func (s *Stop) StreamWithAttributes(attributes nouns.StreamAttributes) *nouns.Stream

type StopAttributes

type StopAttributes struct {
	Action *string `xml:"action,attr,omitempty"`
	Method *string `xml:"method,attr,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL