]> git.basschouten.com Git - openhab-addons.git/blob
2178d284da809d2d15fc198cdd75cd155f38b28d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lifx.internal.dto;
14
15 import java.nio.ByteBuffer;
16
17 /**
18  * @author Tim Buckley - Initial contribution
19  * @author Karel Goderis - Enhancement for the V2 LIFX Firmware and LAN Protocol Specification
20  */
21 public class AcknowledgementResponse extends Packet {
22
23     public static final int TYPE = 0x2D;
24
25     public AcknowledgementResponse() {
26     }
27
28     @Override
29     public int packetType() {
30         return TYPE;
31     }
32
33     @Override
34     protected int packetLength() {
35         return 0;
36     }
37
38     @Override
39     protected void parsePacket(ByteBuffer bytes) {
40         // do nothing
41     }
42
43     @Override
44     protected ByteBuffer packetBytes() {
45         return ByteBuffer.allocate(0);
46     }
47
48     @Override
49     public int[] expectedResponses() {
50         return new int[] {};
51     }
52 }