2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.robonect.internal.model;
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.
19 * @author Marco Meyer - Initial contribution
21 public class MowerInfo extends RobonectAnswer {
24 private Status status;
27 private Health health;
28 private ErrorEntry error;
31 * @return - the name of the mower
33 public String getName() {
38 * @return - some status information of the mower. See {@link Status} for details.
40 public Status getStatus() {
45 * @return - the current timer status information.
47 public Timer getTimer() {
52 * @return - the WLAN signal status.
54 public Wlan getWlan() {
59 * @return - if the mower is in error status {@link #getStatus()} the error information is returned, null otherwise.
61 public ErrorEntry getError() {
66 * @return - the health status information.
68 public Health getHealth() {
72 public void setName(String name) {
76 public void setStatus(Status status) {
80 public void setTimer(Timer timer) {
84 public void setWlan(Wlan wlan) {
88 public void setHealth(Health health) {
92 public void setError(ErrorEntry error) {