participant

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package participant contains auto-generated files. DO NOT MODIFY

Package participant contains auto-generated files. DO NOT MODIFY

Package participant contains auto-generated files. DO NOT MODIFY

Package participant contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing a specific participants resource See https://www.twilio.com/docs/voice/api/conference-participant-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the participant client

func (Client) Delete

func (c Client) Delete() error

Delete removes a address participant from the conference See https://www.twilio.com/docs/voice/api/conference-participant-resource#delete-a-participant-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) DeleteWithContext

func (c Client) DeleteWithContext(context context.Context) error

DeleteWithContext removes a address participant from the conference See https://www.twilio.com/docs/voice/api/conference-participant-resource#delete-a-participant-resource for more details

func (Client) Fetch

func (c Client) Fetch() (*FetchParticipantResponse, error)

Fetch retrieves the participant resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#fetch-a-participant-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) FetchWithContext

func (c Client) FetchWithContext(context context.Context) (*FetchParticipantResponse, error)

FetchWithContext retrieves the participant resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#fetch-a-participant-resource for more details

func (Client) Update

Update modifies a participant resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#update-a-participant-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

func (c Client) UpdateWithContext(context context.Context, input *UpdateParticipantInput) (*UpdateParticipantResponse, error)

UpdateWithContext modifies a participant resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#update-a-participant-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid    string
	ConferenceSid string
	Sid           string
}

ClientProperties are the properties required to manage the participant resources

type FetchParticipantResponse

type FetchParticipantResponse struct {
	AccountSid             string             `json:"account_sid"`
	CallSid                string             `json:"call_sid"`
	CallSidToCoach         *string            `json:"call_sid_to_coach,omitempty"`
	Coaching               bool               `json:"coaching"`
	ConferenceSid          string             `json:"conference_sid"`
	DateCreated            utils.RFC2822Time  `json:"date_created"`
	DateUpdated            *utils.RFC2822Time `json:"date_updated,omitempty"`
	EndConferenceOnExit    bool               `json:"end_conference_on_exit"`
	Hold                   bool               `json:"hold"`
	Label                  *string            `json:"label,omitempty"`
	Muted                  bool               `json:"muted"`
	StartConferenceOnEnter bool               `json:"start_conference_on_enter"`
	Status                 string             `json:"status"`
}

FetchParticipantResponse defines the response fields for retrieving a participant

type UpdateParticipantInput

type UpdateParticipantInput struct {
	AnnounceMethod      *string `form:"AnnounceMethod,omitempty"`
	AnnounceURL         *string `form:"AnnounceUrl,omitempty"`
	BeepOnExit          *bool   `form:"BeepOnExit,omitempty"`
	CallSidToCoach      *string `form:"CallSidToCoach,omitempty"`
	Coaching            *bool   `form:"Coaching,omitempty"`
	EndConferenceOnExit *bool   `form:"EndConferenceOnExit,omitempty"`
	Hold                *bool   `form:"Hold,omitempty"`
	HoldMethod          *string `form:"HoldMethod,omitempty"`
	HoldURL             *string `form:"HoldUrl,omitempty"`
	Muted               *bool   `form:"Muted,omitempty"`
	WaitMethod          *string `form:"WaitMethod,omitempty"`
	WaitURL             *string `form:"WaitUrl,omitempty"`
}

UpdateParticipantInput defines input fields for updating a participant

type UpdateParticipantResponse

type UpdateParticipantResponse struct {
	AccountSid             string             `json:"account_sid"`
	CallSid                string             `json:"call_sid"`
	CallSidToCoach         *string            `json:"call_sid_to_coach,omitempty"`
	Coaching               bool               `json:"coaching"`
	ConferenceSid          string             `json:"conference_sid"`
	DateCreated            utils.RFC2822Time  `json:"date_created"`
	DateUpdated            *utils.RFC2822Time `json:"date_updated,omitempty"`
	EndConferenceOnExit    bool               `json:"end_conference_on_exit"`
	Hold                   bool               `json:"hold"`
	Label                  *string            `json:"label,omitempty"`
	Muted                  bool               `json:"muted"`
	StartConferenceOnEnter bool               `json:"start_conference_on_enter"`
	Status                 string             `json:"status"`
}

UpdateParticipantResponse defines the response fields for the updated participant

Jump to

Keyboard shortcuts

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