| 1 | package Net::NicoVideo::Response; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | $VERSION = '0.28'; | |
| 7 | |||
| 8 | # NOTE: Never inherit with classes that have "get()" or "set()", | ||
| 9 | # because these interfere with _component which is decorated with Net::NicoVideo::Decorator | ||
| 10 | 3 | ▶ | use base qw(Net::NicoVideo::Decorator); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 0 | ▶ | sub is_authflagged { |
|
Subroutine
is_authflagged: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | 0 | my $self = shift; | |
| 14 | 0 | $self->headers->header('x-niconico-authflag'); | |
| 15 | } | ||
| 16 | |||
| 17 | # a client has to check is_success and is_content_success | ||
| 18 | # before calling this | ||
| 19 | 0 | ▶ | sub parsed_content { # abstract |
|
Subroutine
parsed_content: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 0 | my $self = shift; | |
| 21 | 0 | Net::NicoVideo::Content->new($self->_component)->parse; | |
| 22 | } | ||
| 23 | |||
| 24 | # DEPRECATED - use Net::NicoVideo::Content#is_success instead | ||
| 25 | 0 | ▶ | sub is_content_success { # abstract |
|
Subroutine
is_content_success: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | my $self = shift; | |
| 27 | 0 | $self->parsed_content->is_success; | |
| 28 | } | ||
| 29 | |||
| 30 | # DEPRECATED - use Net::NicoVideo::Content#is_error instead | ||
| 31 | 0 | ▶ | sub is_content_error { # abstract |
|
Subroutine
is_content_error: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 32 | 0 | my $self = shift; | |
| 33 | 0 | $self->parsed_content->is_error; | |
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | 3 | 1; | |
| 38 | __END__ | ||