]> git.basschouten.com Git - openhab-addons.git/blob
ff245d86ee7356cbdd68efccc9652e157de28f66
[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.openhab.binding.pilight.internal.serializers.BooleanToIntegerSerializer;
16
17 import com.fasterxml.jackson.annotation.JsonInclude;
18 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
19
20 /**
21  * Options that can be set as a pilight client.
22  *
23  * @author Jeroen Idserda - Initial contribution
24  * @author Stefan Röllin - Port to openHAB 2 pilight binding
25  * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
26  */
27 public class Options {
28
29     public static final String MEDIA_ALL = "all";
30
31     public static final String MEDIA_WEB = "web";
32
33     public static final String MEDIA_MOBILE = "mobile";
34
35     public static final String MEDIA_DESKTOP = "desktop";
36
37     @JsonInclude(JsonInclude.Include.NON_NULL)
38     @JsonSerialize(using = BooleanToIntegerSerializer.class)
39     private Boolean core;
40
41     @JsonInclude(JsonInclude.Include.NON_NULL)
42     @JsonSerialize(using = BooleanToIntegerSerializer.class)
43     private Boolean receiver;
44
45     @JsonInclude(JsonInclude.Include.NON_NULL)
46     @JsonSerialize(using = BooleanToIntegerSerializer.class)
47     private Boolean config;
48
49     @JsonInclude(JsonInclude.Include.NON_NULL)
50     @JsonSerialize(using = BooleanToIntegerSerializer.class)
51     private Boolean forward;
52
53     @JsonInclude(JsonInclude.Include.NON_NULL)
54     @JsonSerialize(using = BooleanToIntegerSerializer.class)
55     private Boolean stats;
56
57     private String uuid;
58
59     private String media;
60
61     public Boolean getCore() {
62         return core;
63     }
64
65     public void setCore(Boolean core) {
66         this.core = core;
67     }
68
69     public Boolean getReceiver() {
70         return receiver;
71     }
72
73     public void setReceiver(Boolean receiver) {
74         this.receiver = receiver;
75     }
76
77     public Boolean getConfig() {
78         return config;
79     }
80
81     public void setConfig(Boolean config) {
82         this.config = config;
83     }
84
85     public Boolean getForward() {
86         return forward;
87     }
88
89     public void setForward(Boolean forward) {
90         this.forward = forward;
91     }
92
93     public Boolean getStats() {
94         return stats;
95     }
96
97     public void setStats(Boolean stats) {
98         this.stats = stats;
99     }
100
101     public String getUuid() {
102         return uuid;
103     }
104
105     public void setUuid(String uuid) {
106         this.uuid = uuid;
107     }
108
109     public String getMedia() {
110         return media;
111     }
112
113     public void setMedia(String media) {
114         this.media = media;
115     }
116 }