File: | lib/Net/MQTT/Message/PubRec.pm |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 3 3 3 | 3376 20 225 | use strict; | ||||
2 | 3 3 3 | 40 13 380 | use warnings; | ||||
3 | package Net::MQTT::Message::PubRec; | ||||||
4 | |||||||
5 | # ABSTRACT: Perl module to represent an MQTT PubRec message | ||||||
6 | |||||||
7 - 17 | =head1 SYNOPSIS # instantiated by Net::MQTT::Message =head1 DESCRIPTION This module encapsulates a single MQTT Publish Received message. It is a specific subclass used by L<Net::MQTT::Message> and should not need to be instantiated directly. =cut | ||||||
18 | |||||||
19 | 3 3 3 | 38 12 644 | use base 'Net::MQTT::Message::JustMessageId'; | ||||
20 | 3 3 3 | 41 16 103 | use Net::MQTT::Constants qw/:all/; | ||||
21 | |||||||
22 | sub message_type { | ||||||
23 | 7 | 180 | 5 | ||||
24 | } | ||||||
25 | |||||||
26 | =method C<message_id()> | ||||||
27 | |||||||
28 | Returns the message id field of the MQTT Publish Received message. | ||||||
29 | |||||||
30 | =cut | ||||||
31 | |||||||
32 | 1; |