commit | author | age
|
9c7bda
|
1 |
/* |
U |
2 |
Mediazentrale - Personal Media Center |
|
3 |
Copyright (C) 2021 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as |
|
7 |
published by the Free Software Foundation, either version 3 of the |
|
8 |
License, or (at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
package de.uhilger.mediaz.entity; |
|
19 |
|
|
20 |
/** |
3929b0
|
21 |
* |
U |
22 |
* Beispiele |
|
23 |
* HTTP GET http://192.168.178.64/relay/0 liefert {"ison":false,"has_timer":false,"overpower":false} |
9c7bda
|
24 |
* |
U |
25 |
* @author Ulrich Hilger |
|
26 |
*/ |
|
27 |
public class Geraet implements Entity { |
|
28 |
|
|
29 |
private String name; |
3929b0
|
30 |
private String einUrl; |
U |
31 |
private String ausUrl; |
|
32 |
private String statusUrl; |
5c6214
|
33 |
private boolean status; |
d769f3
|
34 |
|
5c6214
|
35 |
public boolean getStatus() { |
d769f3
|
36 |
return status; |
U |
37 |
} |
|
38 |
|
5c6214
|
39 |
public void setStatus(boolean status) { |
d769f3
|
40 |
this.status = status; |
U |
41 |
} |
9c7bda
|
42 |
|
U |
43 |
public void setName(String name) { |
|
44 |
this.name = name; |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
public String getName() { |
|
49 |
return name; |
|
50 |
} |
|
51 |
|
3929b0
|
52 |
public String getEinUrl() { |
U |
53 |
return einUrl; |
|
54 |
} |
|
55 |
|
|
56 |
public void setEinUrl(String einUrl) { |
|
57 |
this.einUrl = einUrl; |
|
58 |
} |
|
59 |
|
|
60 |
public String getAusUrl() { |
|
61 |
return ausUrl; |
|
62 |
} |
|
63 |
|
|
64 |
public void setAusUrl(String ausUrl) { |
|
65 |
this.ausUrl = ausUrl; |
|
66 |
} |
|
67 |
|
|
68 |
public String getStatusUrl() { |
|
69 |
return statusUrl; |
|
70 |
} |
|
71 |
|
|
72 |
public void setStatusUrl(String statusUrl) { |
|
73 |
this.statusUrl = statusUrl; |
|
74 |
} |
|
75 |
|
9c7bda
|
76 |
} |