]> git.basschouten.com Git - openhab-addons.git/blob
1b2fac2226ddeae6518116d783f7b4c75d8bf578
[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.volvooncall.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link TyrePressure} is responsible for storing
21  * Tyre Pressure informations returned by vehicule status rest answer
22  *
23  * @author GaĆ«l L'hopital - Initial contribution
24  */
25 @NonNullByDefault
26 public class TyrePressure {
27
28     public enum PressureLevel {
29         @SerializedName("Normal")
30         NORMAL,
31         @SerializedName("LowSoft")
32         LOW_SOFT,
33         UNKNOWN;
34     }
35
36     public PressureLevel frontLeftTyrePressure = PressureLevel.UNKNOWN;
37     public PressureLevel frontRightTyrePressure = PressureLevel.UNKNOWN;
38     public PressureLevel rearLeftTyrePressure = PressureLevel.UNKNOWN;
39     public PressureLevel rearRightTyrePressure = PressureLevel.UNKNOWN;
40
41     /*
42      * Currently unused in the binding, maybe interesting in the future
43      * private ZonedDateTime timestamp;
44      */
45 }