]> git.basschouten.com Git - openhab-addons.git/blob
7b62f06d4becde16fb3b1ee7d6953baf4d42f326
[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.silvercrestwifisocket.internal.entities;
14
15 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketRequestType;
16 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketVendor;
17
18 /**
19  * This POJO represents one Wifi Socket request.
20  *
21  * @author Jaime Vaz - Initial contribution
22  * @author Christian Heimerl - for integration of EasyHome
23  *
24  */
25 public class SilvercrestWifiSocketRequest {
26
27     private String macAddress;
28     private SilvercrestWifiSocketRequestType type;
29     private SilvercrestWifiSocketVendor vendor;
30
31     /**
32      * Default constructor.
33      *
34      * @param macAddress the mac address
35      * @param type the {@link SilvercrestWifiSocketRequestType}
36      * @param vendor the {@link SilvercrestWifiSocketVendor}
37      */
38     public SilvercrestWifiSocketRequest(final String macAddress, final SilvercrestWifiSocketRequestType type,
39             final SilvercrestWifiSocketVendor vendor) {
40         this.macAddress = macAddress;
41         this.type = type;
42         this.vendor = vendor;
43     }
44
45     public String getMacAddress() {
46         return this.macAddress;
47     }
48
49     public void setMacAddress(final String macAddress) {
50         this.macAddress = macAddress;
51     }
52
53     public SilvercrestWifiSocketRequestType getType() {
54         return this.type;
55     }
56
57     public void setType(final SilvercrestWifiSocketRequestType type) {
58         this.type = type;
59     }
60
61     public SilvercrestWifiSocketVendor getVendor() {
62         return vendor;
63     }
64
65     public void setVendor(SilvercrestWifiSocketVendor vendor) {
66         this.vendor = vendor;
67     }
68 }