]> git.basschouten.com Git - openhab-addons.git/blob
07cdf60cea8a0713dddded4d7c4fb123eddaad41
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.ecovacs.internal.api.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * @author Danny Baumann - Initial contribution
19  */
20 @NonNullByDefault
21 public enum MoppingWaterAmount {
22     LOW,
23     MEDIUM,
24     HIGH,
25     VERY_HIGH;
26
27     public static MoppingWaterAmount fromApiValue(int value) {
28         return MoppingWaterAmount.values()[value - 1];
29     }
30
31     public int toApiValue() {
32         return ordinal() + 1;
33     }
34 }