« Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInvite.pm
↑ Summary
Twilio/Rest/Video/V1/CompositionSettings.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Insights::V1::Room; | ||||||||||||||||||||
| 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::RoomList; | ||||||||||||||||||||
| 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} = '/Video/Rooms'; | |||||||||||||||||||
| 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 | Codec => $options->{codec}, | ||||||||||||||||||||
| 39 | CreatedAfter => Twilio::Serialize::iso8601_date_time($options->{created_after}), | ||||||||||||||||||||
| 40 | CreatedBefore => Twilio::Serialize::iso8601_date_time($options->{created_before}), | ||||||||||||||||||||
| 41 | RoomName => $options->{room_name}, | ||||||||||||||||||||
| 42 | RoomType => $options->{room_type}, | ||||||||||||||||||||
| 43 | 1 | PageToken => $page_token, | |||||||||||||||||||
| 44 | Page => $page_number, | ||||||||||||||||||||
| 45 | PageSize => $page_size, | ||||||||||||||||||||
| 46 | }; | ||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 1 | my $response = $self->{version}->page('GET', $self->{uri}, { params => $params }); | |||||||||||||||||||
| 49 | 1 | return $self->_build_page($response); | |||||||||||||||||||
| 50 | } | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 0 | ▶ | sub get_page { | ||||||||||||||||||
|
Subroutine
get_page: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 53 | 0 | my ($self, $target_url) = @_; | |||||||||||||||||||
| 54 | 0 | my $client = $self->{version}->get_domain->get_client; | |||||||||||||||||||
| 55 | 0 | return $self->_build_page($client->request('GET', $target_url)); | |||||||||||||||||||
| 56 | } | ||||||||||||||||||||
| 57 | |||||||||||||||||||||
| 58 | 1 | ▶ | sub _build_page { | ||||||||||||||||||
|
Subroutine
_build_page: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 59 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 60 | 1 | return Twilio::Rest::Insights::V1::RoomPage->new($self->{version}, $response, $self->{solution}); | |||||||||||||||||||
| 61 | } | ||||||||||||||||||||
| 62 | |||||||||||||||||||||
| 63 | 3 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 64 | 3 | my ($self, $room_sid) = @_; | |||||||||||||||||||
| 65 | 3 | return Twilio::Rest::Insights::V1::RoomContext->new($self->{version}, $room_sid); | |||||||||||||||||||
| 66 | } | ||||||||||||||||||||
| 67 | |||||||||||||||||||||
| 68 | package Twilio::Rest::Insights::V1::RoomPage; | ||||||||||||||||||||
| 69 | |||||||||||||||||||||
| 70 | 2 | ▶ | use parent 'Twilio::Page'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | 1 | ▶ | sub records_key { return 'rooms' } | ||||||||||||||||||
|
Subroutine
records_key: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | 1 | ▶ | sub build_instance { | ||||||||||||||||||
|
Subroutine
build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 75 | 1 | my ($self, $payload) = @_; | |||||||||||||||||||
| 76 | 1 | return Twilio::Rest::Insights::V1::RoomInstance->new($self->{version}, $payload); | |||||||||||||||||||
| 77 | } | ||||||||||||||||||||
| 78 | |||||||||||||||||||||
| 79 | package Twilio::Rest::Insights::V1::RoomContext; | ||||||||||||||||||||
| 80 | |||||||||||||||||||||
| 81 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 82 | |||||||||||||||||||||
| 83 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 84 | |||||||||||||||||||||
| 85 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 86 | 3 | my ($class, $version, $room_sid) = @_; | |||||||||||||||||||
| 87 | 3 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 88 | 3 | $self->{solution} = { room_sid => $room_sid }; | |||||||||||||||||||
| 89 | 3 | $self->{uri} = join q{}, '/Video/Rooms/', Twilio::Serialize::path_segment($room_sid); | |||||||||||||||||||
| 90 | 3 | return $self; | |||||||||||||||||||
| 91 | } | ||||||||||||||||||||
| 92 | |||||||||||||||||||||
| 93 | 1 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 94 | 1 | my ($self) = @_; | |||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |||||||||||||||||||
| 97 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 98 | } | ||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | 1 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 101 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 102 | return Twilio::Rest::Insights::V1::RoomInstance->new($self->{version}, $response->get_content, | ||||||||||||||||||||
| 103 | 1 | $self->{solution}{room_sid}); | |||||||||||||||||||
| 104 | } | ||||||||||||||||||||
| 105 | |||||||||||||||||||||
| 106 | 2 | ▶ | sub participants { | ||||||||||||||||||
|
Subroutine
participants: called CC=2 SCAR=6.9
| |||||||||||||||||||||
| 107 | 2 | my ($self, $participant_sid) = @_; | |||||||||||||||||||
| 108 | 2 | require Twilio::Rest::Insights::V1::Room::Participant; | |||||||||||||||||||
| 109 | my $list = Twilio::Rest::Insights::V1::Room::ParticipantList->new($self->{version}, | ||||||||||||||||||||
| 110 | 2 | $self->{solution}{room_sid}); | |||||||||||||||||||
| 111 | 2 | ▶ | return defined $participant_sid ? $list->get_context($participant_sid) : $list; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 112 | } | ||||||||||||||||||||
| 113 | |||||||||||||||||||||
| 114 | package Twilio::Rest::Insights::V1::RoomInstance; | ||||||||||||||||||||
| 115 | |||||||||||||||||||||
| 116 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 117 | |||||||||||||||||||||
| 118 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 121 | 2 | my ($class, $version, $payload, $room_sid) = @_; | |||||||||||||||||||
| 122 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 123 | 2 | ▶ | $self->{solution} = { room_sid => $room_sid // $self->{properties}{room_sid} }; | ||||||||||||||||||
|
Condition66%2/3
$room_sid // $self->{"properties"}{"room_sid"}
MC/DC0%0/2
$room_sid // $self->{"properties"}{"room_sid"}
$room_sid
$self->{"properties"}{"room_sid"}
Truth table66%2/3
A // B
A= $room_sidB= $self->{"properties"}{"room_sid"}
| |||||||||||||||||||||
| 124 | 2 | return $self; | |||||||||||||||||||
| 125 | } | ||||||||||||||||||||
| 126 | |||||||||||||||||||||
| 127 | 0 | ▶ | sub fetch { | ||||||||||||||||||
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 128 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 129 | 0 | return $self->_context->fetch(@arguments); | |||||||||||||||||||
| 130 | } | ||||||||||||||||||||
| 131 | |||||||||||||||||||||
| 132 | 0 | ▶ | sub participants { | ||||||||||||||||||
|
Subroutine
participants: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 133 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 134 | 0 | return $self->_context->participants(@arguments); | |||||||||||||||||||
| 135 | } | ||||||||||||||||||||
| 136 | |||||||||||||||||||||
| 137 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 138 | 0 | my ($self) = @_; | |||||||||||||||||||
| 139 | return Twilio::Rest::Insights::V1::RoomContext->new($self->{version}, | ||||||||||||||||||||
| 140 | 0 | $self->{solution}{room_sid}); | |||||||||||||||||||
| 141 | } | ||||||||||||||||||||
| 142 | |||||||||||||||||||||
| 143 | 2 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 144 | 2 | ▶ | sub codecs { return $_[0]{properties}{codecs} } | ||||||||||||||||||
|
Subroutine
codecs: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 145 | 2 | ▶ | sub concurrent_participants { return $_[0]{properties}{concurrent_participants} } | ||||||||||||||||||
|
Subroutine
concurrent_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 146 | 2 | ▶ | sub create_time { return Twilio::Deserialize::date_time($_[0]{properties}{create_time}) } | ||||||||||||||||||
|
Subroutine
create_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 147 | 2 | ▶ | sub created_method { return $_[0]{properties}{created_method} } | ||||||||||||||||||
|
Subroutine
created_method: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 148 | 2 | ▶ | sub duration_sec { return $_[0]{properties}{duration_sec} } | ||||||||||||||||||
|
Subroutine
duration_sec: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 149 | 2 | ▶ | sub edge_location { return $_[0]{properties}{edge_location} } | ||||||||||||||||||
|
Subroutine
edge_location: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 150 | 2 | ▶ | sub end_reason { return $_[0]{properties}{end_reason} } | ||||||||||||||||||
|
Subroutine
end_reason: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 151 | 2 | ▶ | sub end_time { return Twilio::Deserialize::date_time($_[0]{properties}{end_time}) } | ||||||||||||||||||
|
Subroutine
end_time: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 152 | 2 | ▶ | sub links { return $_[0]{properties}{links} } | ||||||||||||||||||
|
Subroutine
links: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 153 | 2 | ▶ | sub max_concurrent_participants { return $_[0]{properties}{max_concurrent_participants} } | ||||||||||||||||||
|
Subroutine
max_concurrent_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 154 | 2 | ▶ | sub max_participants { return $_[0]{properties}{max_participants} } | ||||||||||||||||||
|
Subroutine
max_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 155 | 2 | ▶ | sub media_region { return $_[0]{properties}{media_region} } | ||||||||||||||||||
|
Subroutine
media_region: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 156 | 2 | ▶ | sub processing_state { return $_[0]{properties}{processing_state} } | ||||||||||||||||||
|
Subroutine
processing_state: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 157 | 2 | ▶ | sub recording_enabled { return $_[0]{properties}{recording_enabled} } | ||||||||||||||||||
|
Subroutine
recording_enabled: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 158 | 2 | ▶ | sub room_name { return $_[0]{properties}{room_name} } | ||||||||||||||||||
|
Subroutine
room_name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 159 | 2 | ▶ | sub room_sid { return $_[0]{properties}{room_sid} } | ||||||||||||||||||
|
Subroutine
room_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 160 | 2 | ▶ | sub room_status { return $_[0]{properties}{room_status} } | ||||||||||||||||||
|
Subroutine
room_status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 161 | 2 | ▶ | sub room_type { return $_[0]{properties}{room_type} } | ||||||||||||||||||
|
Subroutine
room_type: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 162 | 2 | ▶ | sub status_callback { return $_[0]{properties}{status_callback} } | ||||||||||||||||||
|
Subroutine
status_callback: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 163 | 2 | ▶ | sub status_callback_method { return $_[0]{properties}{status_callback_method} } | ||||||||||||||||||
|
Subroutine
status_callback_method: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 164 | 2 | ▶ | sub total_participant_duration_sec { return $_[0]{properties}{total_participant_duration_sec} } | ||||||||||||||||||
|
Subroutine
total_participant_duration_sec: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 165 | 2 | ▶ | sub total_recording_duration_sec { return $_[0]{properties}{total_recording_duration_sec} } | ||||||||||||||||||
|
Subroutine
total_recording_duration_sec: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 166 | 2 | ▶ | sub unique_participant_identities { return $_[0]{properties}{unique_participant_identities} } | ||||||||||||||||||
|
Subroutine
unique_participant_identities: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 167 | 2 | ▶ | sub unique_participants { return $_[0]{properties}{unique_participants} } | ||||||||||||||||||
|
Subroutine
unique_participants: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 168 | 2 | ▶ | sub url { return $_[0]{properties}{url} } | ||||||||||||||||||
|
Subroutine
url: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 169 | |||||||||||||||||||||
| 170 | 2 | 1; | |||||||||||||||||||
| 171 | |||||||||||||||||||||
| 172 | __END__ | ||||||||||||||||||||