]> git.basschouten.com Git - openhab-addons.git/blob
f37b9c273e0a59e150eb142f10c1b3325f301038
[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.mybmw.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.mybmw.internal.utils.Constants;
17
18 /**
19  * The {@link MyBMWVehicleConfiguration} class contains fields mapping thing configuration parameters.
20  *
21  * @author Bernd Weymann - Initial contribution
22  * @author Martin Grassl - renaming and refactoring to Java Beans
23  */
24 @NonNullByDefault
25 public class MyBMWVehicleConfiguration {
26     /**
27      * Vehicle Identification Number (VIN)
28      */
29     private String vin = Constants.EMPTY;
30
31     /**
32      * Vehicle brand
33      * - bmw
34      * - bmw_i
35      * - mini
36      */
37     private String vehicleBrand = Constants.EMPTY;
38
39     /**
40      * Data refresh rate in minutes
41      */
42     private int refreshInterval = MyBMWConstants.DEFAULT_REFRESH_INTERVAL_MINUTES;
43
44     /**
45      * @return the vin
46      */
47     public String getVin() {
48         return vin;
49     }
50
51     /**
52      * @param vin the vin to set
53      */
54     public void setVin(String vin) {
55         this.vin = vin;
56     }
57
58     /**
59      * @return the vehicleBrand
60      */
61     public String getVehicleBrand() {
62         return vehicleBrand;
63     }
64
65     /**
66      * @param vehicleBrand the vehicleBrand to set
67      */
68     public void setVehicleBrand(String vehicleBrand) {
69         this.vehicleBrand = vehicleBrand;
70     }
71
72     /**
73      * @return the refreshInterval
74      */
75     public int getRefreshInterval() {
76         return refreshInterval;
77     }
78
79     /**
80      * @param refreshInterval the refreshInterval to set
81      */
82     public void setRefreshInterval(int refreshInterval) {
83         this.refreshInterval = refreshInterval;
84     }
85
86     /*
87      * (non-Javadoc)
88      * 
89      * @see java.lang.Object#toString()
90      */
91
92     @Override
93     public String toString() {
94         return "MyBMWVehicleConfiguration [vin=" + vin + ", vehicleBrand=" + vehicleBrand + ", refreshInterval="
95                 + refreshInterval + "]";
96     }
97 }