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.ecobee.internal.enums;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
18 import com.google.gson.annotations.SerializedName;
21 * The {@link EquipmentNotificationType} represents the types of equipment notifications.
23 * @author Mark Hilbush - Initial contribution
26 public enum EquipmentNotificationType {
28 @SerializedName("hvac")
31 @SerializedName("furnaceFilter")
32 FURNACE_FILTER("furnaceFilter"),
34 @SerializedName("humidifierFilter")
35 HUMIDIFIER_FILTER("humidifierFilter"),
37 @SerializedName("dehumidifierFilter")
38 DEHUNIDIFIER_FILTER("dehumidifierFilter"),
40 @SerializedName("ventilator")
41 VENTILATOR("ventilator"),
46 @SerializedName("airFilter")
47 AIR_FILTER("airFilter"),
49 @SerializedName("airCleaner")
50 AIR_CLEANER("airCleaner"),
52 @SerializedName("uvLamp")
55 private final String mode;
57 private EquipmentNotificationType(String mode) {
61 public String value() {
65 public static EquipmentNotificationType forValue(@Nullable String v) {
67 for (EquipmentNotificationType vm : EquipmentNotificationType.values()) {
68 if (vm.mode.equals(v)) {
73 throw new IllegalArgumentException("Invalid vent: " + v);
77 public String toString() {