WWW::Google::Cloud::Messaging::Response::ResultSet - An accessor of result data.
my $results = $res->results; while (my $result = $results->next) { my $reg_id = $result->target_reg_id; if ($result->is_success) { say sprintf 'message_id: %s, reg_id: %s', $result->message_id, $reg_id; } else { warn sprintf 'error: %s, reg_id: %s', $result->error, $reg_id; } if ($result->has_canonical_id) { say sprintf 'reg_id %s is old! refreshed reg_id is %s', $reg_id, $result->registration_id;' } }
WWW::Google::Cloud::Messaging::Response::Result is an accessor of result data.
Create a WWW::Google::Cloud::Messaging::Response::Result. This method used on WWW::Google::Cloud::Messaging::Response::ResultSet internal.
Returns true if do not have error field.
error
String representing the message when it was successfully processed.
String describing an error that occurred while processing the message for that recipient.
For more information, please check http://developer.android.com/guide/google/gcm/gcm.html#error_codes.
If set, means that GCM processed the message but it has another canonical registration ID for that device.
Returns true if contain the registration_id field.
registration_id
Return the registration id that associated with this response. This value is one of the registration_ids field specified at the time of request.
registration_ids
xaicron <xaicron@cpan.org>
Copyright 2012 - xaicron
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
WWW::Google::Cloud::Messaging
To install WWW::Google::Cloud::Messaging, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Google::Cloud::Messaging
CPAN shell
perl -MCPAN -e shell install WWW::Google::Cloud::Messaging
For more information on module installation, please visit the detailed CPAN module installation guide.