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