2 * Copyright (c) 2010-2021 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.bmwconnecteddrive.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bmwconnecteddrive.internal.utils.Constants;
19 * The {@link VehicleConfiguration} class contains fields mapping thing configuration parameters.
21 * @author Bernd Weymann - Initial contribution
24 public class VehicleConfiguration {
26 * Vehicle Identification Number (VIN)
28 public String vin = Constants.EMPTY;
31 * Data refresh rate in minutes
33 public int refreshInterval = ConnectedDriveConstants.DEFAULT_REFRESH_INTERVAL_MINUTES;
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>
41 public String units = ConnectedDriveConstants.UNITS_AUTODETECT;
44 * image size - width & length (square)
46 public int imageSize = ConnectedDriveConstants.DEFAULT_IMAGE_SIZE_PX;
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>
56 public String imageViewport = ConnectedDriveConstants.DEFAULT_IMAGE_VIEWPORT;