]> git.basschouten.com Git - openhab-addons.git/blob
e198b1fa50c6b1e639157b773f628dbae6430a53
[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.paradoxalarm.internal.communication.messages;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * From Jean's excel:
19  * 0x03: IP Request
20  * 0x01: IP Response
21  * 0x04: Serial/pass through command request
22  * 0x02: Serial/pass through command response
23  *
24  * @author Konstantin Polihronov - Initial contribution
25  */
26 @NonNullByDefault
27 public enum HeaderMessageType {
28     IP_REQUEST((byte) 0x03),
29     IP_RESPONSE((byte) 0x01),
30     SERIAL_PASSTHRU_REQUEST((byte) 0x04),
31     SERIAL_PASSTHRU_RESPONSE((byte) 0x02);
32
33     private byte value;
34
35     HeaderMessageType(byte value) {
36         this.value = value;
37     }
38
39     public byte getValue() {
40         return value;
41     }
42 }