]> git.basschouten.com Git - openhab-addons.git/blob
b2fe3ec2438c68f75584dc4019f0b7a730eb4ee6
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.bmwconnecteddrive.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bmwconnecteddrive.internal.utils.Constants;
17
18 /**
19  * The {@link VehicleConfiguration} class contains fields mapping thing configuration parameters.
20  *
21  * @author Bernd Weymann - Initial contribution
22  */
23 @NonNullByDefault
24 public class VehicleConfiguration {
25     /**
26      * Vehicle Identification Number (VIN)
27      */
28     public String vin = Constants.EMPTY;
29
30     /**
31      * Data refresh rate in minutes
32      */
33     public int refreshInterval = ConnectedDriveConstants.DEFAULT_REFRESH_INTERVAL_MINUTES;
34
35     /**
36      * Either Auto Detect Miles units (UK & US) or select Format directly
37      * <option value="AUTODETECT">Auto Detect</option>
38      * <option value="METRIC">Metric</option>
39      * <option value="IMPERIAL">Imperial</option>
40      */
41     public String units = ConnectedDriveConstants.UNITS_AUTODETECT;
42
43     /**
44      * image size - width & length (square)
45      */
46     public int imageSize = ConnectedDriveConstants.DEFAULT_IMAGE_SIZE_PX;
47
48     /**
49      * image viewport defined as options in thing xml
50      * <option value="FRONT">Front</option>
51      * <option value="REAR">Rear</option>
52      * <option value="SIDE">Slide</option>
53      * <option value="DASHBOARD">Dashboard</option>
54      * <option value="DRIVERDOOR">Driver Door</option>
55      */
56     public String imageViewport = ConnectedDriveConstants.DEFAULT_IMAGE_VIEWPORT;
57 }