| 1 | package SignalWire::REST::Namespaces::Logs; | ||||||||||
| 2 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | # --- MessageLogs --- | ||||||||||
| 7 | package SignalWire::REST::Namespaces::Logs::Messages; | ||||||||||
| 8 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 6 | extends 'SignalWire::REST::Namespaces::Base'; | |||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub list { | ||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 12 | 0 | my ($self, %params) = @_; | |||||||||
| 13 | 0 | ▶ | my $p = %params ? \%params : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | return $self->_http->get($self->_base_path, params => $p); | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub get { | ||||||||
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 18 | 0 | my ($self, $log_id) = @_; | |||||||||
| 19 | 0 | return $self->_http->get($self->_path($log_id)); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | # --- VoiceLogs --- | ||||||||||
| 23 | package SignalWire::REST::Namespaces::Logs::Voice; | ||||||||||
| 24 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | 6 | extends 'SignalWire::REST::Namespaces::Base'; | |||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub list { | ||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 28 | 0 | my ($self, %params) = @_; | |||||||||
| 29 | 0 | ▶ | my $p = %params ? \%params : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $self->_http->get($self->_base_path, params => $p); | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 0 | ▶ | sub get { | ||||||||
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 34 | 0 | my ($self, $log_id) = @_; | |||||||||
| 35 | 0 | return $self->_http->get($self->_path($log_id)); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub list_events { | ||||||||
|
Subroutine
list_events: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 39 | 0 | my ($self, $log_id, %params) = @_; | |||||||||
| 40 | 0 | ▶ | my $p = %params ? \%params : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 41 | 0 | return $self->_http->get($self->_path($log_id, 'events'), params => $p); | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | # --- FaxLogs --- | ||||||||||
| 45 | package SignalWire::REST::Namespaces::Logs::Fax; | ||||||||||
| 46 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 47 | 6 | extends 'SignalWire::REST::Namespaces::Base'; | |||||||||
| 48 | |||||||||||
| 49 | 0 | ▶ | sub list { | ||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 50 | 0 | my ($self, %params) = @_; | |||||||||
| 51 | 0 | ▶ | my $p = %params ? \%params : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $self->_http->get($self->_base_path, params => $p); | |||||||||
| 53 | } | ||||||||||
| 54 | |||||||||||
| 55 | 0 | ▶ | sub get { | ||||||||
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 56 | 0 | my ($self, $log_id) = @_; | |||||||||
| 57 | 0 | return $self->_http->get($self->_path($log_id)); | |||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | # --- ConferenceLogs --- | ||||||||||
| 61 | package SignalWire::REST::Namespaces::Logs::Conferences; | ||||||||||
| 62 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 63 | 6 | extends 'SignalWire::REST::Namespaces::Base'; | |||||||||
| 64 | |||||||||||
| 65 | 0 | ▶ | sub list { | ||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 66 | 0 | my ($self, %params) = @_; | |||||||||
| 67 | 0 | ▶ | my $p = %params ? \%params : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 68 | 0 | return $self->_http->get($self->_base_path, params => $p); | |||||||||
| 69 | } | ||||||||||
| 70 | |||||||||||
| 71 | # --- LogsNamespace --- | ||||||||||
| 72 | package SignalWire::REST::Namespaces::Logs; | ||||||||||
| 73 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 74 | |||||||||||
| 75 | 6 | has '_http' => ( is => 'ro', required => 1 ); | |||||||||
| 76 | 6 | has 'messages' => ( is => 'lazy' ); | |||||||||
| 77 | 6 | has 'voice' => ( is => 'lazy' ); | |||||||||
| 78 | 6 | has 'fax' => ( is => 'lazy' ); | |||||||||
| 79 | 6 | has 'conferences' => ( is => 'lazy' ); | |||||||||
| 80 | |||||||||||
| 81 | 1 | ▶ | sub _build_messages { SignalWire::REST::Namespaces::Logs::Messages->new(_http => $_[0]->_http, _base_path => '/api/messaging/logs') } | ||||||||
|
Subroutine
_build_messages: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 2 | ▶ | sub _build_voice { SignalWire::REST::Namespaces::Logs::Voice->new(_http => $_[0]->_http, _base_path => '/api/voice/logs') } | ||||||||
|
Subroutine
_build_voice: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 1 | ▶ | sub _build_fax { SignalWire::REST::Namespaces::Logs::Fax->new(_http => $_[0]->_http, _base_path => '/api/fax/logs') } | ||||||||
|
Subroutine
_build_fax: called CC=1 SCAR=0.0
| |||||||||||
| 84 | 1 | ▶ | sub _build_conferences { SignalWire::REST::Namespaces::Logs::Conferences->new(_http => $_[0]->_http, _base_path => '/api/logs/conferences') } | ||||||||
|
Subroutine
_build_conferences: called CC=1 SCAR=0.0
| |||||||||||
| 85 | |||||||||||
| 86 | 6 | 1; | |||||||||