]> git.basschouten.com Git - openhab-addons.git/blob
c706b05c043be96c70edcf85d7cca896e6eba1f1
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.robonect.internal.model;
14
15 /**
16  * The mower information holds the main information from the majority of the available channels. This class is a POJO
17  * to deserialize the JSON response from the module.
18  * 
19  * @author Marco Meyer - Initial contribution
20  */
21 public class MowerInfo extends RobonectAnswer {
22
23     private String name;
24     private Status status;
25     private Timer timer;
26     private Wlan wlan;
27     private Health health;
28     private ErrorEntry error;
29
30     /**
31      * @return - the name of the mower
32      */
33     public String getName() {
34         return name;
35     }
36
37     /**
38      * @return - some status information of the mower. See {@link Status} for details.
39      */
40     public Status getStatus() {
41         return status;
42     }
43
44     /**
45      * @return - the current timer status information.
46      */
47     public Timer getTimer() {
48         return timer;
49     }
50
51     /**
52      * @return - the WLAN signal status.
53      */
54     public Wlan getWlan() {
55         return wlan;
56     }
57
58     /**
59      * @return - if the mower is in error status {@link #getStatus()} the error information is returned, null otherwise.
60      */
61     public ErrorEntry getError() {
62         return error;
63     }
64
65     /**
66      * @return - the health status information.
67      */
68     public Health getHealth() {
69         return health;
70     }
71
72     public void setName(String name) {
73         this.name = name;
74     }
75
76     public void setStatus(Status status) {
77         this.status = status;
78     }
79
80     public void setTimer(Timer timer) {
81         this.timer = timer;
82     }
83
84     public void setWlan(Wlan wlan) {
85         this.wlan = wlan;
86     }
87
88     public void setHealth(Health health) {
89         this.health = health;
90     }
91
92     public void setError(ErrorEntry error) {
93         this.error = error;
94     }
95 }