]> git.basschouten.com Git - openhab-addons.git/blob
655fe226ee6127b44eaccf2b2cbf2cb5cd1fe512
[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.dto.vehicle;
14
15 /**
16  * The {@link VehicleLocation} Data Transfer Object
17  *
18  * @author Bernd Weymann - Initial contribution
19  * @author Martin Grassl - refactored to Java Bean
20  */
21 public class VehicleLocation {
22     private Coordinates coordinates = new Coordinates();
23     private Address address = new Address();
24     private int heading = -1;
25
26     public Coordinates getCoordinates() {
27         return coordinates;
28     }
29
30     public void setCoordinates(Coordinates coordinates) {
31         this.coordinates = coordinates;
32     }
33
34     public Address getAddress() {
35         return address;
36     }
37
38     public void setAddress(Address address) {
39         this.address = address;
40     }
41
42     public int getHeading() {
43         return heading;
44     }
45
46     public void setHeading(int heading) {
47         this.heading = heading;
48     }
49
50     @Override
51     public String toString() {
52         return "VehicleLocation [coordinates=" + coordinates + ", address=" + address + ", heading=" + heading + "]";
53     }
54 }