2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.ventaair.internal.message.dto;
15 import com.google.gson.annotations.SerializedName;
18 * Header which is part of a message to/from a device
20 * @author Stefan Triller - Initial contribution
25 @SerializedName(value = "MacAdress")
26 private String macAdress;
28 @SerializedName(value = "IpAdress")
29 private String ipAdress;
31 @SerializedName(value = "DeviceType")
32 private int deviceType;
34 @SerializedName(value = "Hash")
37 @SerializedName(value = "DeviceName")
38 private String deviceName;
40 public Header(String mac, int devType, String hash, String devName) {
42 this.deviceType = devType;
44 this.deviceName = devName;
47 public String getMacAdress() {
51 public void setMacAdress(String macAdress) {
52 this.macAdress = macAdress;
55 public String getIpAdress() {
59 public void setIpAdress(String ipAdress) {
60 this.ipAdress = ipAdress;
63 public int getDeviceType() {
67 public void setDeviceType(int deviceType) {
68 this.deviceType = deviceType;
71 public String getHash() {
75 public void setHash(String hash) {
79 public String getDeviceName() {
83 public void setDeviceName(String deviceName) {
84 this.deviceName = deviceName;