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 LimitNotificationType} represents the types of limit notifications.
23 * @author Mark Hilbush - Initial contribution
26 public enum LimitNotificationType {
28 @SerializedName("lowTemp")
31 @SerializedName("highTemp")
32 HIGH_TEMP("highTemp"),
34 @SerializedName("lowHumidity")
35 LOW_HUMIDITY("lowHumidity"),
37 @SerializedName("highHumidity")
38 HIGH_HUMIDITY("highHumidity"),
40 @SerializedName("auxHeat")
43 @SerializedName("auxOutdoor")
44 AUX_OUTDOOR("auxOutdoor");
46 private final String mode;
48 private LimitNotificationType(String mode) {
52 public String value() {
56 public static LimitNotificationType forValue(@Nullable String v) {
58 for (LimitNotificationType vm : LimitNotificationType.values()) {
59 if (vm.mode.equals(v)) {
64 throw new IllegalArgumentException("Invalid vent: " + v);
68 public String toString() {