| 1 | package WWW::Google::C2DM::Constants; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use parent 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | my @error_code = qw( | |
| 8 | QuotaExceeded | ||
| 9 | DeviceQuotaExceeded | ||
| 10 | MissingRegistration | ||
| 11 | InvalidRegistration | ||
| 12 | MismatchSenderId | ||
| 13 | NotRegistered | ||
| 14 | MessageTooBig | ||
| 15 | MissingCollapseKey | ||
| 16 | ); | ||
| 17 | |||
| 18 | 1 | our @EXPORT = (@error_code); | |
| 19 | 1 | our @EXPORT_OK = (); | |
| 20 | 1 | our %EXPORT_TAGS = ( | |
| 21 | all => [@EXPORT, @EXPORT_OK], | ||
| 22 | error_code => \@error_code, | ||
| 23 | ); | ||
| 24 | |||
| 25 | 1 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | # error code | ||
| 27 | 1 | QuotaExceeded => 'QuotaExceeded', | |
| 28 | DeviceQuotaExceeded => 'DeviceQuotaExceeded', | ||
| 29 | MissingRegistration => 'MissingRegistration', | ||
| 30 | InvalidRegistration => 'InvalidRegistration', | ||
| 31 | MismatchSenderId => 'MismatchSenderId', | ||
| 32 | NotRegistered => 'NotRegistered', | ||
| 33 | MessageTooBig => 'MessageTooBig', | ||
| 34 | MissingCollapseKey => 'MissingCollapseKey', | ||
| 35 | 1 | }; | |
| 36 | |||
| 37 | 1 | 1; | |
| 38 | __END__ | ||