]> git.basschouten.com Git - openhab-addons.git/blob
58b9e683ade2596aebc7a919e43f6e9b0c6d8b88
[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 Wouter Born - Initial contribution
19  */
20 public class GetLastHevCycleResultRequest extends Packet {
21
22     public static final int TYPE = 0x94;
23
24     public GetLastHevCycleResultRequest() {
25         setAddressable(true);
26         setResponseRequired(true);
27     }
28
29     @Override
30     public int packetType() {
31         return TYPE;
32     }
33
34     @Override
35     protected int packetLength() {
36         return 0;
37     }
38
39     @Override
40     protected void parsePacket(ByteBuffer bytes) {
41         // do nothing
42     }
43
44     @Override
45     protected ByteBuffer packetBytes() {
46         return ByteBuffer.allocate(0);
47     }
48
49     @Override
50     public int[] expectedResponses() {
51         return new int[] { StateLastHevCycleResultResponse.TYPE };
52     }
53 }