1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package io.netty.handler.codec.mqtt;
18
19
20
21
22 public final class MqttSubAckMessage extends MqttMessage {
23
24 public MqttSubAckMessage(
25 MqttFixedHeader mqttFixedHeader,
26 MqttMessageIdAndPropertiesVariableHeader variableHeader,
27 MqttSubAckPayload payload) {
28 super(mqttFixedHeader, variableHeader, payload);
29 }
30
31 public MqttSubAckMessage(
32 MqttFixedHeader mqttFixedHeader,
33 MqttMessageIdVariableHeader variableHeader,
34 MqttSubAckPayload payload) {
35 this(mqttFixedHeader, variableHeader.withDefaultEmptyProperties(), payload);
36 }
37
38 @Override
39 public MqttMessageIdVariableHeader variableHeader() {
40 return (MqttMessageIdVariableHeader) super.variableHeader();
41 }
42
43 public MqttMessageIdAndPropertiesVariableHeader idAndPropertiesVariableHeader() {
44 return (MqttMessageIdAndPropertiesVariableHeader) super.variableHeader();
45 }
46
47 @Override
48 public MqttSubAckPayload payload() {
49 return (MqttSubAckPayload) super.payload();
50 }
51 }