« Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteraction.pm
↑ Summary
Twilio/Rest/Conversations/V1/Configuration/Webhook.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Insights::V1::Conference; | ||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | 2 | ▶ | use 5.016; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2 | our $VERSION = '2.001'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | package Twilio::Rest::Insights::V1::ConferenceList; | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 2 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 4 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 4 | my ($class, $version) = @_; | |||||||||||||||||||
| 17 | 4 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 4 | $self->{solution} = {}; | |||||||||||||||||||
| 19 | 4 | $self->{uri} = '/Conferences'; | |||||||||||||||||||
| 20 | 4 | return $self; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 0 | ▶ | sub read { | ||||||||||||||||||
|
Subroutine
read: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 24 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 25 | 0 | return $self->read_records(@arguments); | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | 0 | ▶ | sub stream { | ||||||||||||||||||
|
Subroutine
stream: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 29 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 30 | 0 | return $self->stream_records(@arguments); | |||||||||||||||||||
| 31 | } | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 1 | ▶ | sub page { | ||||||||||||||||||
|
Subroutine
page: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 34 | 1 | my ($self, $options, $page_size, $page_token, $page_number) = @_; | |||||||||||||||||||
| 35 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | my $params = { | ||||||||||||||||||||
| 38 | ConferenceSid => $options->{conference_sid}, | ||||||||||||||||||||
| 39 | CreatedAfter => $options->{created_after}, | ||||||||||||||||||||
| 40 | CreatedBefore => $options->{created_before}, | ||||||||||||||||||||
| 41 | DetectedIssues => $options->{detected_issues}, | ||||||||||||||||||||
| 42 | EndReason => $options->{end_reason}, | ||||||||||||||||||||
| 43 | FriendlyName => $options->{friendly_name}, | ||||||||||||||||||||
| 44 | MixerRegion => $options->{mixer_region}, | ||||||||||||||||||||
| 45 | Status => $options->{status}, | ||||||||||||||||||||
| 46 | Subaccount => $options->{subaccount}, | ||||||||||||||||||||
| 47 | Tags => $options->{tags}, | ||||||||||||||||||||
| 48 | 1 | PageToken => $page_token, | |||||||||||||||||||
| 49 | Page => $page_number, | ||||||||||||||||||||
| 50 | PageSize => $page_size, | ||||||||||||||||||||
| 51 | }; | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 54 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 55 | } | ||||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 58 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 59 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 60 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 61 | } | ||||||||||||||||||||
| 62 | |||||||||||||||||||||
| 63 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 64 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 65 | return Twilio::Rest::Insights::V1::ConferencePage->new($self->{version}, $response, | ||||||||||||||||||||
| 66 | 1 | $self->{solution}); | |||||||||||||||||||
| 67 | } | ||||||||||||||||||||
| 68 | |||||||||||||||||||||
| 69 | 3 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 70 | 3 | my ($self, $conference_sid) = @_; | |||||||||||||||||||
| 71 | 3 | return Twilio::Rest::Insights::V1::ConferenceContext->new($self->{version}, $conference_sid); | |||||||||||||||||||
| 72 | } | ||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | package Twilio::Rest::Insights::V1::ConferencePage; | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 77 | |||||||||||||||||||||
| 78 | 1 | ▶ | sub records_key { return 'conferences' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 81 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 82 | 1 | return Twilio::Rest::Insights::V1::ConferenceInstance->new($self->{version}, $payload); | |||||||||||||||||||
| 83 | } | ||||||||||||||||||||
| 84 | |||||||||||||||||||||
| 85 | package Twilio::Rest::Insights::V1::ConferenceContext; | ||||||||||||||||||||
| 86 | |||||||||||||||||||||
| 87 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 88 | |||||||||||||||||||||
| 89 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 90 | |||||||||||||||||||||
| 91 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 92 | 3 | my ($class, $version, $conference_sid) = @_; | |||||||||||||||||||
| 93 | 3 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 94 | 3 | $self->{solution} = { conference_sid => $conference_sid }; | |||||||||||||||||||
| 95 | 3 | $self->{uri} = join q{}, '/Conferences/', Twilio::Serialize::path_segment($conference_sid); | |||||||||||||||||||
| 96 | 3 | return $self; | |||||||||||||||||||
| 97 | } | ||||||||||||||||||||
| 98 | |||||||||||||||||||||
| 99 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 100 | 1 | my ($self) = @_; | |||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 103 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 104 | } | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | 1 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 107 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 108 | return Twilio::Rest::Insights::V1::ConferenceInstance->new($self->{version}, | ||||||||||||||||||||
| 109 | 1 | $response->get_content, $self->{solution}{conference_sid}); | |||||||||||||||||||
| 110 | } | ||||||||||||||||||||
| 111 | |||||||||||||||||||||
| 112 | 2 | ▶ | sub conference_participants { | ||||||||||||||||||
|
Subroutine
conference_participants: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 113 | 2 | my ($self, $participant_sid) = @_; | |||||||||||||||||||
| 114 | 2 | require Twilio::Rest::Insights::V1::Conference::ConferenceParticipant; | |||||||||||||||||||
| 115 | my $list = | ||||||||||||||||||||
| 116 | Twilio::Rest::Insights::V1::Conference::ConferenceParticipantList->new($self->{version}, | ||||||||||||||||||||
| 117 | 2 | $self->{solution}{conference_sid}); | |||||||||||||||||||
| 118 | 2 | ▶ | return defined $participant_sid ? $list->get_context($participant_sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 119 | } | ||||||||||||||||||||
| 120 | |||||||||||||||||||||
| 121 | package Twilio::Rest::Insights::V1::ConferenceInstance; | ||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 124 | |||||||||||||||||||||
| 125 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 126 | |||||||||||||||||||||
| 127 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 128 | 2 | my ($class, $version, $payload, $conference_sid) = @_; | |||||||||||||||||||
| 129 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 130 | 2 | ▶ | $self->{solution} = { conference_sid => $conference_sid // $self->{properties}{conference_sid} }; | ||||||||||||||||||
|
Condition66%2/3
$conference_sid // $self->{"properties"}{"conference_sid"}
MC/DC0%0/2
$conference_sid // $self->{"properties"}{"conference_sid"}
$conference_sid
$self->{"properties"}{"conference_sid"}
Truth table66%2/3
A // B
A= $conference_sidB= $self->{"properties"}{"conference_sid"}
| |||||||||||||||||||||
| 131 | 2 | return $self; | |||||||||||||||||||
| 132 | } | ||||||||||||||||||||
| 133 | |||||||||||||||||||||
| 134 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 135 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 136 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 137 | } | ||||||||||||||||||||
| 138 | |||||||||||||||||||||
| 139 | 0 | ▶ | sub conference_participants { | ||||||||||||||||||
|
Subroutine
conference_participants: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 140 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 141 | 0 | return $self->_context->conference_participants(@arguments); | |||||||||||||||||||
| 142 | } | ||||||||||||||||||||
| 143 | |||||||||||||||||||||
| 144 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 145 | 0 | my ($self) = @_; | |||||||||||||||||||
| 146 | return Twilio::Rest::Insights::V1::ConferenceContext->new($self->{version}, | ||||||||||||||||||||
| 147 | 0 | $self->{solution}{conference_sid}); | |||||||||||||||||||
| 148 | } | ||||||||||||||||||||
| 149 | |||||||||||||||||||||
| 150 | 2 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 151 | 2 | ▶ | sub conference_sid { return $_[0]{properties}{conference_sid} } | ||||||||||||||||||
|
Subroutine
conference_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 152 | 2 | ▶ | sub connect_duration_seconds { return $_[0]{properties}{connect_duration_seconds} } | ||||||||||||||||||
|
Subroutine
connect_duration_seconds: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 153 | 2 | ▶ | sub create_time { return Twilio::Deserialize::date_time($_[0]{properties}{create_time}) } | ||||||||||||||||||
|
Subroutine
create_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 154 | 2 | ▶ | sub detected_issues { return $_[0]{properties}{detected_issues} } | ||||||||||||||||||
|
Subroutine
detected_issues: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 155 | 2 | ▶ | sub duration_seconds { return $_[0]{properties}{duration_seconds} } | ||||||||||||||||||
|
Subroutine
duration_seconds: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 156 | 2 | ▶ | sub end_reason { return $_[0]{properties}{end_reason} } | ||||||||||||||||||
|
Subroutine
end_reason: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 157 | 2 | ▶ | sub end_time { return Twilio::Deserialize::date_time($_[0]{properties}{end_time}) } | ||||||||||||||||||
|
Subroutine
end_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 158 | 2 | ▶ | sub ended_by { return $_[0]{properties}{ended_by} } | ||||||||||||||||||
|
Subroutine
ended_by: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 159 | 2 | ▶ | sub friendly_name { return $_[0]{properties}{friendly_name} } | ||||||||||||||||||
|
Subroutine
friendly_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 160 | 2 | ▶ | sub links { return $_[0]{properties}{links} } | ||||||||||||||||||
|
Subroutine
links: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 161 | 2 | ▶ | sub max_concurrent_participants { return $_[0]{properties}{max_concurrent_participants} } | ||||||||||||||||||
|
Subroutine
max_concurrent_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 162 | 2 | ▶ | sub max_participants { return $_[0]{properties}{max_participants} } | ||||||||||||||||||
|
Subroutine
max_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 163 | 2 | ▶ | sub mixer_region { return $_[0]{properties}{mixer_region} } | ||||||||||||||||||
|
Subroutine
mixer_region: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 164 | 2 | ▶ | sub mixer_region_requested { return $_[0]{properties}{mixer_region_requested} } | ||||||||||||||||||
|
Subroutine
mixer_region_requested: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 165 | 2 | ▶ | sub processing_state { return $_[0]{properties}{processing_state} } | ||||||||||||||||||
|
Subroutine
processing_state: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 166 | 2 | ▶ | sub recording_enabled { return $_[0]{properties}{recording_enabled} } | ||||||||||||||||||
|
Subroutine
recording_enabled: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 167 | 2 | ▶ | sub start_time { return Twilio::Deserialize::date_time($_[0]{properties}{start_time}) } | ||||||||||||||||||
|
Subroutine
start_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 168 | 2 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 169 | 2 | ▶ | sub tag_info { return $_[0]{properties}{tag_info} } | ||||||||||||||||||
|
Subroutine
tag_info: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 170 | 2 | ▶ | sub tags { return $_[0]{properties}{tags} } | ||||||||||||||||||
|
Subroutine
tags: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 171 | 2 | ▶ | sub unique_participants { return $_[0]{properties}{unique_participants} } | ||||||||||||||||||
|
Subroutine
unique_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 172 | 2 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 173 | |||||||||||||||||||||
| 174 | 2 | 1; | |||||||||||||||||||
| 175 | |||||||||||||||||||||
| 176 | __END__ | ||||||||||||||||||||