]> git.basschouten.com Git - openhab-addons.git/blob
a65bd1105919e9e7470125260353e91b08209136
[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.ventaair.internal.message.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Header which is part of a message to/from a device
19  *
20  * @author Stefan Triller - Initial contribution
21  *
22  */
23 public class Header {
24
25     @SerializedName(value = "MacAdress")
26     private String macAdress;
27
28     @SerializedName(value = "IpAdress")
29     private String ipAdress;
30
31     @SerializedName(value = "DeviceType")
32     private int deviceType;
33
34     @SerializedName(value = "Hash")
35     private String hash;
36
37     @SerializedName(value = "DeviceName")
38     private String deviceName;
39
40     public Header(String mac, int devType, String hash, String devName) {
41         this.macAdress = mac;
42         this.deviceType = devType;
43         this.hash = hash;
44         this.deviceName = devName;
45     }
46
47     public String getMacAdress() {
48         return macAdress;
49     }
50
51     public void setMacAdress(String macAdress) {
52         this.macAdress = macAdress;
53     }
54
55     public String getIpAdress() {
56         return ipAdress;
57     }
58
59     public void setIpAdress(String ipAdress) {
60         this.ipAdress = ipAdress;
61     }
62
63     public int getDeviceType() {
64         return deviceType;
65     }
66
67     public void setDeviceType(int deviceType) {
68         this.deviceType = deviceType;
69     }
70
71     public String getHash() {
72         return hash;
73     }
74
75     public void setHash(String hash) {
76         this.hash = hash;
77     }
78
79     public String getDeviceName() {
80         return deviceName;
81     }
82
83     public void setDeviceName(String deviceName) {
84         this.deviceName = deviceName;
85     }
86 }