]> git.basschouten.com Git - openhab-addons.git/blob
fde9dcc647d1efa5d0762881f6d225c3857e0be0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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         setTagged(false);
28         setAddressable(true);
29         setResponseRequired(true);
30     }
31
32     @Override
33     public int packetType() {
34         return TYPE;
35     }
36
37     @Override
38     protected int packetLength() {
39         return 0;
40     }
41
42     @Override
43     protected void parsePacket(ByteBuffer bytes) {
44         // do nothing
45     }
46
47     @Override
48     protected ByteBuffer packetBytes() {
49         return ByteBuffer.allocate(0);
50     }
51
52     @Override
53     public int[] expectedResponses() {
54         return new int[] { StateTileEffectResponse.TYPE };
55     }
56 }