« Twilio/Rest/Api/V2010/Account/Call/Siprec.pm
↑ Summary
Twilio/Rest/Api/V2010/Account/Call/Transcription.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||||||||||
| 2 | package Twilio::Rest::Api::V2010::Account::Call::Stream; | ||||||||||||||||||||
| 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::Api::V2010::Account::Call::StreamList; | ||||||||||||||||||||
| 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 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 2 | my ($class, $version, $account_sid, $call_sid) = @_; | |||||||||||||||||||
| 17 | 2 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 18 | 2 | $self->{solution} = { account_sid => $account_sid, call_sid => $call_sid }; | |||||||||||||||||||
| 19 | 2 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), '/Calls/', | |||||||||||||||||||
| 20 | Twilio::Serialize::path_segment($call_sid), '/Streams.json'; | ||||||||||||||||||||
| 21 | 2 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 1 | ▶ | sub create { | ||||||||||||||||||
|
Subroutine
create: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 25 | 1 | my ($self, $url, $options) = @_; | |||||||||||||||||||
| 26 | 1 | ▶ | $options //= {}; | ||||||||||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | my $data = { | ||||||||||||||||||||
| 29 | Url => $url, | ||||||||||||||||||||
| 30 | Name => $options->{name}, | ||||||||||||||||||||
| 31 | 'Parameter1.Name' => $options->{parameter1_name}, | ||||||||||||||||||||
| 32 | 'Parameter1.Value' => $options->{parameter1_value}, | ||||||||||||||||||||
| 33 | 'Parameter10.Name' => $options->{parameter10_name}, | ||||||||||||||||||||
| 34 | 'Parameter10.Value' => $options->{parameter10_value}, | ||||||||||||||||||||
| 35 | 'Parameter11.Name' => $options->{parameter11_name}, | ||||||||||||||||||||
| 36 | 'Parameter11.Value' => $options->{parameter11_value}, | ||||||||||||||||||||
| 37 | 'Parameter12.Name' => $options->{parameter12_name}, | ||||||||||||||||||||
| 38 | 'Parameter12.Value' => $options->{parameter12_value}, | ||||||||||||||||||||
| 39 | 'Parameter13.Name' => $options->{parameter13_name}, | ||||||||||||||||||||
| 40 | 'Parameter13.Value' => $options->{parameter13_value}, | ||||||||||||||||||||
| 41 | 'Parameter14.Name' => $options->{parameter14_name}, | ||||||||||||||||||||
| 42 | 'Parameter14.Value' => $options->{parameter14_value}, | ||||||||||||||||||||
| 43 | 'Parameter15.Name' => $options->{parameter15_name}, | ||||||||||||||||||||
| 44 | 'Parameter15.Value' => $options->{parameter15_value}, | ||||||||||||||||||||
| 45 | 'Parameter16.Name' => $options->{parameter16_name}, | ||||||||||||||||||||
| 46 | 'Parameter16.Value' => $options->{parameter16_value}, | ||||||||||||||||||||
| 47 | 'Parameter17.Name' => $options->{parameter17_name}, | ||||||||||||||||||||
| 48 | 'Parameter17.Value' => $options->{parameter17_value}, | ||||||||||||||||||||
| 49 | 'Parameter18.Name' => $options->{parameter18_name}, | ||||||||||||||||||||
| 50 | 'Parameter18.Value' => $options->{parameter18_value}, | ||||||||||||||||||||
| 51 | 'Parameter19.Name' => $options->{parameter19_name}, | ||||||||||||||||||||
| 52 | 'Parameter19.Value' => $options->{parameter19_value}, | ||||||||||||||||||||
| 53 | 'Parameter2.Name' => $options->{parameter2_name}, | ||||||||||||||||||||
| 54 | 'Parameter2.Value' => $options->{parameter2_value}, | ||||||||||||||||||||
| 55 | 'Parameter20.Name' => $options->{parameter20_name}, | ||||||||||||||||||||
| 56 | 'Parameter20.Value' => $options->{parameter20_value}, | ||||||||||||||||||||
| 57 | 'Parameter21.Name' => $options->{parameter21_name}, | ||||||||||||||||||||
| 58 | 'Parameter21.Value' => $options->{parameter21_value}, | ||||||||||||||||||||
| 59 | 'Parameter22.Name' => $options->{parameter22_name}, | ||||||||||||||||||||
| 60 | 'Parameter22.Value' => $options->{parameter22_value}, | ||||||||||||||||||||
| 61 | 'Parameter23.Name' => $options->{parameter23_name}, | ||||||||||||||||||||
| 62 | 'Parameter23.Value' => $options->{parameter23_value}, | ||||||||||||||||||||
| 63 | 'Parameter24.Name' => $options->{parameter24_name}, | ||||||||||||||||||||
| 64 | 'Parameter24.Value' => $options->{parameter24_value}, | ||||||||||||||||||||
| 65 | 'Parameter25.Name' => $options->{parameter25_name}, | ||||||||||||||||||||
| 66 | 'Parameter25.Value' => $options->{parameter25_value}, | ||||||||||||||||||||
| 67 | 'Parameter26.Name' => $options->{parameter26_name}, | ||||||||||||||||||||
| 68 | 'Parameter26.Value' => $options->{parameter26_value}, | ||||||||||||||||||||
| 69 | 'Parameter27.Name' => $options->{parameter27_name}, | ||||||||||||||||||||
| 70 | 'Parameter27.Value' => $options->{parameter27_value}, | ||||||||||||||||||||
| 71 | 'Parameter28.Name' => $options->{parameter28_name}, | ||||||||||||||||||||
| 72 | 'Parameter28.Value' => $options->{parameter28_value}, | ||||||||||||||||||||
| 73 | 'Parameter29.Name' => $options->{parameter29_name}, | ||||||||||||||||||||
| 74 | 'Parameter29.Value' => $options->{parameter29_value}, | ||||||||||||||||||||
| 75 | 'Parameter3.Name' => $options->{parameter3_name}, | ||||||||||||||||||||
| 76 | 'Parameter3.Value' => $options->{parameter3_value}, | ||||||||||||||||||||
| 77 | 'Parameter30.Name' => $options->{parameter30_name}, | ||||||||||||||||||||
| 78 | 'Parameter30.Value' => $options->{parameter30_value}, | ||||||||||||||||||||
| 79 | 'Parameter31.Name' => $options->{parameter31_name}, | ||||||||||||||||||||
| 80 | 'Parameter31.Value' => $options->{parameter31_value}, | ||||||||||||||||||||
| 81 | 'Parameter32.Name' => $options->{parameter32_name}, | ||||||||||||||||||||
| 82 | 'Parameter32.Value' => $options->{parameter32_value}, | ||||||||||||||||||||
| 83 | 'Parameter33.Name' => $options->{parameter33_name}, | ||||||||||||||||||||
| 84 | 'Parameter33.Value' => $options->{parameter33_value}, | ||||||||||||||||||||
| 85 | 'Parameter34.Name' => $options->{parameter34_name}, | ||||||||||||||||||||
| 86 | 'Parameter34.Value' => $options->{parameter34_value}, | ||||||||||||||||||||
| 87 | 'Parameter35.Name' => $options->{parameter35_name}, | ||||||||||||||||||||
| 88 | 'Parameter35.Value' => $options->{parameter35_value}, | ||||||||||||||||||||
| 89 | 'Parameter36.Name' => $options->{parameter36_name}, | ||||||||||||||||||||
| 90 | 'Parameter36.Value' => $options->{parameter36_value}, | ||||||||||||||||||||
| 91 | 'Parameter37.Name' => $options->{parameter37_name}, | ||||||||||||||||||||
| 92 | 'Parameter37.Value' => $options->{parameter37_value}, | ||||||||||||||||||||
| 93 | 'Parameter38.Name' => $options->{parameter38_name}, | ||||||||||||||||||||
| 94 | 'Parameter38.Value' => $options->{parameter38_value}, | ||||||||||||||||||||
| 95 | 'Parameter39.Name' => $options->{parameter39_name}, | ||||||||||||||||||||
| 96 | 'Parameter39.Value' => $options->{parameter39_value}, | ||||||||||||||||||||
| 97 | 'Parameter4.Name' => $options->{parameter4_name}, | ||||||||||||||||||||
| 98 | 'Parameter4.Value' => $options->{parameter4_value}, | ||||||||||||||||||||
| 99 | 'Parameter40.Name' => $options->{parameter40_name}, | ||||||||||||||||||||
| 100 | 'Parameter40.Value' => $options->{parameter40_value}, | ||||||||||||||||||||
| 101 | 'Parameter41.Name' => $options->{parameter41_name}, | ||||||||||||||||||||
| 102 | 'Parameter41.Value' => $options->{parameter41_value}, | ||||||||||||||||||||
| 103 | 'Parameter42.Name' => $options->{parameter42_name}, | ||||||||||||||||||||
| 104 | 'Parameter42.Value' => $options->{parameter42_value}, | ||||||||||||||||||||
| 105 | 'Parameter43.Name' => $options->{parameter43_name}, | ||||||||||||||||||||
| 106 | 'Parameter43.Value' => $options->{parameter43_value}, | ||||||||||||||||||||
| 107 | 'Parameter44.Name' => $options->{parameter44_name}, | ||||||||||||||||||||
| 108 | 'Parameter44.Value' => $options->{parameter44_value}, | ||||||||||||||||||||
| 109 | 'Parameter45.Name' => $options->{parameter45_name}, | ||||||||||||||||||||
| 110 | 'Parameter45.Value' => $options->{parameter45_value}, | ||||||||||||||||||||
| 111 | 'Parameter46.Name' => $options->{parameter46_name}, | ||||||||||||||||||||
| 112 | 'Parameter46.Value' => $options->{parameter46_value}, | ||||||||||||||||||||
| 113 | 'Parameter47.Name' => $options->{parameter47_name}, | ||||||||||||||||||||
| 114 | 'Parameter47.Value' => $options->{parameter47_value}, | ||||||||||||||||||||
| 115 | 'Parameter48.Name' => $options->{parameter48_name}, | ||||||||||||||||||||
| 116 | 'Parameter48.Value' => $options->{parameter48_value}, | ||||||||||||||||||||
| 117 | 'Parameter49.Name' => $options->{parameter49_name}, | ||||||||||||||||||||
| 118 | 'Parameter49.Value' => $options->{parameter49_value}, | ||||||||||||||||||||
| 119 | 'Parameter5.Name' => $options->{parameter5_name}, | ||||||||||||||||||||
| 120 | 'Parameter5.Value' => $options->{parameter5_value}, | ||||||||||||||||||||
| 121 | 'Parameter50.Name' => $options->{parameter50_name}, | ||||||||||||||||||||
| 122 | 'Parameter50.Value' => $options->{parameter50_value}, | ||||||||||||||||||||
| 123 | 'Parameter51.Name' => $options->{parameter51_name}, | ||||||||||||||||||||
| 124 | 'Parameter51.Value' => $options->{parameter51_value}, | ||||||||||||||||||||
| 125 | 'Parameter52.Name' => $options->{parameter52_name}, | ||||||||||||||||||||
| 126 | 'Parameter52.Value' => $options->{parameter52_value}, | ||||||||||||||||||||
| 127 | 'Parameter53.Name' => $options->{parameter53_name}, | ||||||||||||||||||||
| 128 | 'Parameter53.Value' => $options->{parameter53_value}, | ||||||||||||||||||||
| 129 | 'Parameter54.Name' => $options->{parameter54_name}, | ||||||||||||||||||||
| 130 | 'Parameter54.Value' => $options->{parameter54_value}, | ||||||||||||||||||||
| 131 | 'Parameter55.Name' => $options->{parameter55_name}, | ||||||||||||||||||||
| 132 | 'Parameter55.Value' => $options->{parameter55_value}, | ||||||||||||||||||||
| 133 | 'Parameter56.Name' => $options->{parameter56_name}, | ||||||||||||||||||||
| 134 | 'Parameter56.Value' => $options->{parameter56_value}, | ||||||||||||||||||||
| 135 | 'Parameter57.Name' => $options->{parameter57_name}, | ||||||||||||||||||||
| 136 | 'Parameter57.Value' => $options->{parameter57_value}, | ||||||||||||||||||||
| 137 | 'Parameter58.Name' => $options->{parameter58_name}, | ||||||||||||||||||||
| 138 | 'Parameter58.Value' => $options->{parameter58_value}, | ||||||||||||||||||||
| 139 | 'Parameter59.Name' => $options->{parameter59_name}, | ||||||||||||||||||||
| 140 | 'Parameter59.Value' => $options->{parameter59_value}, | ||||||||||||||||||||
| 141 | 'Parameter6.Name' => $options->{parameter6_name}, | ||||||||||||||||||||
| 142 | 'Parameter6.Value' => $options->{parameter6_value}, | ||||||||||||||||||||
| 143 | 'Parameter60.Name' => $options->{parameter60_name}, | ||||||||||||||||||||
| 144 | 'Parameter60.Value' => $options->{parameter60_value}, | ||||||||||||||||||||
| 145 | 'Parameter61.Name' => $options->{parameter61_name}, | ||||||||||||||||||||
| 146 | 'Parameter61.Value' => $options->{parameter61_value}, | ||||||||||||||||||||
| 147 | 'Parameter62.Name' => $options->{parameter62_name}, | ||||||||||||||||||||
| 148 | 'Parameter62.Value' => $options->{parameter62_value}, | ||||||||||||||||||||
| 149 | 'Parameter63.Name' => $options->{parameter63_name}, | ||||||||||||||||||||
| 150 | 'Parameter63.Value' => $options->{parameter63_value}, | ||||||||||||||||||||
| 151 | 'Parameter64.Name' => $options->{parameter64_name}, | ||||||||||||||||||||
| 152 | 'Parameter64.Value' => $options->{parameter64_value}, | ||||||||||||||||||||
| 153 | 'Parameter65.Name' => $options->{parameter65_name}, | ||||||||||||||||||||
| 154 | 'Parameter65.Value' => $options->{parameter65_value}, | ||||||||||||||||||||
| 155 | 'Parameter66.Name' => $options->{parameter66_name}, | ||||||||||||||||||||
| 156 | 'Parameter66.Value' => $options->{parameter66_value}, | ||||||||||||||||||||
| 157 | 'Parameter67.Name' => $options->{parameter67_name}, | ||||||||||||||||||||
| 158 | 'Parameter67.Value' => $options->{parameter67_value}, | ||||||||||||||||||||
| 159 | 'Parameter68.Name' => $options->{parameter68_name}, | ||||||||||||||||||||
| 160 | 'Parameter68.Value' => $options->{parameter68_value}, | ||||||||||||||||||||
| 161 | 'Parameter69.Name' => $options->{parameter69_name}, | ||||||||||||||||||||
| 162 | 'Parameter69.Value' => $options->{parameter69_value}, | ||||||||||||||||||||
| 163 | 'Parameter7.Name' => $options->{parameter7_name}, | ||||||||||||||||||||
| 164 | 'Parameter7.Value' => $options->{parameter7_value}, | ||||||||||||||||||||
| 165 | 'Parameter70.Name' => $options->{parameter70_name}, | ||||||||||||||||||||
| 166 | 'Parameter70.Value' => $options->{parameter70_value}, | ||||||||||||||||||||
| 167 | 'Parameter71.Name' => $options->{parameter71_name}, | ||||||||||||||||||||
| 168 | 'Parameter71.Value' => $options->{parameter71_value}, | ||||||||||||||||||||
| 169 | 'Parameter72.Name' => $options->{parameter72_name}, | ||||||||||||||||||||
| 170 | 'Parameter72.Value' => $options->{parameter72_value}, | ||||||||||||||||||||
| 171 | 'Parameter73.Name' => $options->{parameter73_name}, | ||||||||||||||||||||
| 172 | 'Parameter73.Value' => $options->{parameter73_value}, | ||||||||||||||||||||
| 173 | 'Parameter74.Name' => $options->{parameter74_name}, | ||||||||||||||||||||
| 174 | 'Parameter74.Value' => $options->{parameter74_value}, | ||||||||||||||||||||
| 175 | 'Parameter75.Name' => $options->{parameter75_name}, | ||||||||||||||||||||
| 176 | 'Parameter75.Value' => $options->{parameter75_value}, | ||||||||||||||||||||
| 177 | 'Parameter76.Name' => $options->{parameter76_name}, | ||||||||||||||||||||
| 178 | 'Parameter76.Value' => $options->{parameter76_value}, | ||||||||||||||||||||
| 179 | 'Parameter77.Name' => $options->{parameter77_name}, | ||||||||||||||||||||
| 180 | 'Parameter77.Value' => $options->{parameter77_value}, | ||||||||||||||||||||
| 181 | 'Parameter78.Name' => $options->{parameter78_name}, | ||||||||||||||||||||
| 182 | 'Parameter78.Value' => $options->{parameter78_value}, | ||||||||||||||||||||
| 183 | 'Parameter79.Name' => $options->{parameter79_name}, | ||||||||||||||||||||
| 184 | 'Parameter79.Value' => $options->{parameter79_value}, | ||||||||||||||||||||
| 185 | 'Parameter8.Name' => $options->{parameter8_name}, | ||||||||||||||||||||
| 186 | 'Parameter8.Value' => $options->{parameter8_value}, | ||||||||||||||||||||
| 187 | 'Parameter80.Name' => $options->{parameter80_name}, | ||||||||||||||||||||
| 188 | 'Parameter80.Value' => $options->{parameter80_value}, | ||||||||||||||||||||
| 189 | 'Parameter81.Name' => $options->{parameter81_name}, | ||||||||||||||||||||
| 190 | 'Parameter81.Value' => $options->{parameter81_value}, | ||||||||||||||||||||
| 191 | 'Parameter82.Name' => $options->{parameter82_name}, | ||||||||||||||||||||
| 192 | 'Parameter82.Value' => $options->{parameter82_value}, | ||||||||||||||||||||
| 193 | 'Parameter83.Name' => $options->{parameter83_name}, | ||||||||||||||||||||
| 194 | 'Parameter83.Value' => $options->{parameter83_value}, | ||||||||||||||||||||
| 195 | 'Parameter84.Name' => $options->{parameter84_name}, | ||||||||||||||||||||
| 196 | 'Parameter84.Value' => $options->{parameter84_value}, | ||||||||||||||||||||
| 197 | 'Parameter85.Name' => $options->{parameter85_name}, | ||||||||||||||||||||
| 198 | 'Parameter85.Value' => $options->{parameter85_value}, | ||||||||||||||||||||
| 199 | 'Parameter86.Name' => $options->{parameter86_name}, | ||||||||||||||||||||
| 200 | 'Parameter86.Value' => $options->{parameter86_value}, | ||||||||||||||||||||
| 201 | 'Parameter87.Name' => $options->{parameter87_name}, | ||||||||||||||||||||
| 202 | 'Parameter87.Value' => $options->{parameter87_value}, | ||||||||||||||||||||
| 203 | 'Parameter88.Name' => $options->{parameter88_name}, | ||||||||||||||||||||
| 204 | 'Parameter88.Value' => $options->{parameter88_value}, | ||||||||||||||||||||
| 205 | 'Parameter89.Name' => $options->{parameter89_name}, | ||||||||||||||||||||
| 206 | 'Parameter89.Value' => $options->{parameter89_value}, | ||||||||||||||||||||
| 207 | 'Parameter9.Name' => $options->{parameter9_name}, | ||||||||||||||||||||
| 208 | 'Parameter9.Value' => $options->{parameter9_value}, | ||||||||||||||||||||
| 209 | 'Parameter90.Name' => $options->{parameter90_name}, | ||||||||||||||||||||
| 210 | 'Parameter90.Value' => $options->{parameter90_value}, | ||||||||||||||||||||
| 211 | 'Parameter91.Name' => $options->{parameter91_name}, | ||||||||||||||||||||
| 212 | 'Parameter91.Value' => $options->{parameter91_value}, | ||||||||||||||||||||
| 213 | 'Parameter92.Name' => $options->{parameter92_name}, | ||||||||||||||||||||
| 214 | 'Parameter92.Value' => $options->{parameter92_value}, | ||||||||||||||||||||
| 215 | 'Parameter93.Name' => $options->{parameter93_name}, | ||||||||||||||||||||
| 216 | 'Parameter93.Value' => $options->{parameter93_value}, | ||||||||||||||||||||
| 217 | 'Parameter94.Name' => $options->{parameter94_name}, | ||||||||||||||||||||
| 218 | 'Parameter94.Value' => $options->{parameter94_value}, | ||||||||||||||||||||
| 219 | 'Parameter95.Name' => $options->{parameter95_name}, | ||||||||||||||||||||
| 220 | 'Parameter95.Value' => $options->{parameter95_value}, | ||||||||||||||||||||
| 221 | 'Parameter96.Name' => $options->{parameter96_name}, | ||||||||||||||||||||
| 222 | 'Parameter96.Value' => $options->{parameter96_value}, | ||||||||||||||||||||
| 223 | 'Parameter97.Name' => $options->{parameter97_name}, | ||||||||||||||||||||
| 224 | 'Parameter97.Value' => $options->{parameter97_value}, | ||||||||||||||||||||
| 225 | 'Parameter98.Name' => $options->{parameter98_name}, | ||||||||||||||||||||
| 226 | 'Parameter98.Value' => $options->{parameter98_value}, | ||||||||||||||||||||
| 227 | 'Parameter99.Name' => $options->{parameter99_name}, | ||||||||||||||||||||
| 228 | 'Parameter99.Value' => $options->{parameter99_value}, | ||||||||||||||||||||
| 229 | StatusCallback => $options->{status_callback}, | ||||||||||||||||||||
| 230 | StatusCallbackMethod => $options->{status_callback_method}, | ||||||||||||||||||||
| 231 | Track => $options->{track}, | ||||||||||||||||||||
| 232 | 1 | }; | |||||||||||||||||||
| 233 | |||||||||||||||||||||
| 234 | my $response = | ||||||||||||||||||||
| 235 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'create', { data => $data }); | |||||||||||||||||||
| 236 | return Twilio::Rest::Api::V2010::Account::Call::StreamInstance->new( | ||||||||||||||||||||
| 237 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 238 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 239 | $self->{solution}{call_sid} | ||||||||||||||||||||
| 240 | 1 | ); | |||||||||||||||||||
| 241 | } | ||||||||||||||||||||
| 242 | |||||||||||||||||||||
| 243 | 1 | ▶ | sub get_context { | ||||||||||||||||||
|
Subroutine
get_context: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 244 | 1 | my ($self, $sid) = @_; | |||||||||||||||||||
| 245 | return Twilio::Rest::Api::V2010::Account::Call::StreamContext->new( | ||||||||||||||||||||
| 246 | $self->{version}, | ||||||||||||||||||||
| 247 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 248 | 1 | $self->{solution}{call_sid}, $sid | |||||||||||||||||||
| 249 | ); | ||||||||||||||||||||
| 250 | } | ||||||||||||||||||||
| 251 | |||||||||||||||||||||
| 252 | package Twilio::Rest::Api::V2010::Account::Call::StreamContext; | ||||||||||||||||||||
| 253 | |||||||||||||||||||||
| 254 | 2 | ▶ | use parent 'Twilio::InstanceContext'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 255 | |||||||||||||||||||||
| 256 | 2 | ▶ | use Twilio::Serialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 257 | |||||||||||||||||||||
| 258 | 1 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 259 | 1 | my ($class, $version, $account_sid, $call_sid, $sid) = @_; | |||||||||||||||||||
| 260 | 1 | my $self = $class->SUPER::new($version); | |||||||||||||||||||
| 261 | 1 | $self->{solution} = { account_sid => $account_sid, call_sid => $call_sid, sid => $sid }; | |||||||||||||||||||
| 262 | 1 | $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid), '/Calls/', | |||||||||||||||||||
| 263 | Twilio::Serialize::path_segment($call_sid), '/Streams/', Twilio::Serialize::path_segment($sid), | ||||||||||||||||||||
| 264 | '.json'; | ||||||||||||||||||||
| 265 | 1 | return $self; | |||||||||||||||||||
| 266 | } | ||||||||||||||||||||
| 267 | |||||||||||||||||||||
| 268 | 1 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 269 | 1 | my ($self, $status) = @_; | |||||||||||||||||||
| 270 | |||||||||||||||||||||
| 271 | 1 | my $data = { Status => $status, }; | |||||||||||||||||||
| 272 | |||||||||||||||||||||
| 273 | my $response = | ||||||||||||||||||||
| 274 | 1 | $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data }); | |||||||||||||||||||
| 275 | 1 | return $self->_build_instance($response); | |||||||||||||||||||
| 276 | } | ||||||||||||||||||||
| 277 | |||||||||||||||||||||
| 278 | 1 | ▶ | sub _build_instance { | ||||||||||||||||||
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 279 | 1 | my ($self, $response) = @_; | |||||||||||||||||||
| 280 | return Twilio::Rest::Api::V2010::Account::Call::StreamInstance->new( | ||||||||||||||||||||
| 281 | $self->{version}, $response->get_content, | ||||||||||||||||||||
| 282 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 283 | $self->{solution}{call_sid}, | ||||||||||||||||||||
| 284 | $self->{solution}{sid} | ||||||||||||||||||||
| 285 | 1 | ); | |||||||||||||||||||
| 286 | } | ||||||||||||||||||||
| 287 | |||||||||||||||||||||
| 288 | package Twilio::Rest::Api::V2010::Account::Call::StreamInstance; | ||||||||||||||||||||
| 289 | |||||||||||||||||||||
| 290 | 2 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 291 | |||||||||||||||||||||
| 292 | 2 | ▶ | use Twilio::Deserialize; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 293 | |||||||||||||||||||||
| 294 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||||||||
| 295 | 2 | my ($class, $version, $payload, $account_sid, $call_sid, $sid) = @_; | |||||||||||||||||||
| 296 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||||||||||
| 297 | $self->{solution} = | ||||||||||||||||||||
| 298 | 2 | ▶ | { account_sid => $account_sid, call_sid => $call_sid, sid => $sid // $self->{properties}{sid} }; | ||||||||||||||||||
|
Condition66%2/3
$sid // $self->{"properties"}{"sid"}
MC/DC0%0/2
$sid // $self->{"properties"}{"sid"}
$sid
$self->{"properties"}{"sid"}
Truth table66%2/3
A // B
A= $sidB= $self->{"properties"}{"sid"}
| |||||||||||||||||||||
| 299 | 2 | return $self; | |||||||||||||||||||
| 300 | } | ||||||||||||||||||||
| 301 | |||||||||||||||||||||
| 302 | 0 | ▶ | sub update { | ||||||||||||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 303 | 0 | my ($self, @arguments) = @_; | |||||||||||||||||||
| 304 | 0 | return $self->_context->update(@arguments); | |||||||||||||||||||
| 305 | } | ||||||||||||||||||||
| 306 | |||||||||||||||||||||
| 307 | 0 | ▶ | sub _context { | ||||||||||||||||||
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 308 | 0 | my ($self) = @_; | |||||||||||||||||||
| 309 | return Twilio::Rest::Api::V2010::Account::Call::StreamContext->new( | ||||||||||||||||||||
| 310 | $self->{version}, | ||||||||||||||||||||
| 311 | $self->{solution}{account_sid}, | ||||||||||||||||||||
| 312 | $self->{solution}{call_sid}, | ||||||||||||||||||||
| 313 | $self->{solution}{sid} | ||||||||||||||||||||
| 314 | 0 | ); | |||||||||||||||||||
| 315 | } | ||||||||||||||||||||
| 316 | |||||||||||||||||||||
| 317 | 2 | ▶ | sub account_sid { return $_[0]{properties}{account_sid} } | ||||||||||||||||||
|
Subroutine
account_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 318 | 2 | ▶ | sub call_sid { return $_[0]{properties}{call_sid} } | ||||||||||||||||||
|
Subroutine
call_sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 319 | 2 | ▶ | sub date_updated { return Twilio::Deserialize::date_time($_[0]{properties}{date_updated}) } | ||||||||||||||||||
|
Subroutine
date_updated: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 320 | 2 | ▶ | sub name { return $_[0]{properties}{name} } | ||||||||||||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 321 | 2 | ▶ | sub sid { return $_[0]{properties}{sid} } | ||||||||||||||||||
|
Subroutine
sid: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 322 | 2 | ▶ | sub status { return $_[0]{properties}{status} } | ||||||||||||||||||
|
Subroutine
status: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 323 | 2 | ▶ | sub uri { return $_[0]{properties}{uri} } | ||||||||||||||||||
|
Subroutine
uri: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 324 | |||||||||||||||||||||
| 325 | 2 | 1; | |||||||||||||||||||
| 326 | |||||||||||||||||||||
| 327 | __END__ | ||||||||||||||||||||