]> git.basschouten.com Git - openhab-addons.git/blob
a22fa2dd6a08cacd0a692d003c925a47dd907762
[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.pilight.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This object is sent to pilight right after the initial connection. It describes what kind of client we want to be.
19  *
20  * @author Jeroen Idserda - Initial contribution
21  * @author Stefan Röllin - Port to openHAB 2 pilight binding
22  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
23  */
24 @NonNullByDefault
25 public class Identification {
26
27     public static final String ACTION_IDENTIFY = "identify";
28
29     private String action;
30
31     private Options options = new Options();
32
33     public Identification() {
34         this.action = ACTION_IDENTIFY;
35     }
36
37     public String getAction() {
38         return action;
39     }
40
41     public void setAction(String action) {
42         this.action = action;
43     }
44
45     public Options getOptions() {
46         return options;
47     }
48
49     public void setOptions(Options options) {
50         this.options = options;
51     }
52 }