2 * Copyright (c) 2010-2023 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.ecovacs.internal.api.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * @author Johannes Ptaszyk - Initial contribution
23 public enum CleanMode {
24 @SerializedName("auto")
26 @SerializedName("border")
28 @SerializedName("spot")
30 @SerializedName(value = "SpotArea", alternate = { "spotArea" })
32 @SerializedName(value = "CustomArea", alternate = { "customArea" })
34 @SerializedName("singleRoom")
36 @SerializedName("pause")
38 @SerializedName("stop")
40 @SerializedName(value = "going", alternate = { "goCharging" })
42 @SerializedName("washing")
44 @SerializedName("drying")
46 @SerializedName("idle")
49 public boolean isActive() {
50 return this == AUTO || this == EDGE || this == SPOT || this == SPOT_AREA || this == CUSTOM_AREA
51 || this == SINGLE_ROOM;
54 public boolean isIdle() {
55 return this == IDLE || this == DRYING || this == WASHING;