]> git.basschouten.com Git - openhab-addons.git/blob
3f9e4db4f41d77a89e8d7737a1b853b8f35e43c8
[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.icloud.internal.handler.dto.json.response;
14
15 /**
16  * Serializable class to parse json response received from the Apple server.
17  * Contains device location information.
18  *
19  * @author Patrik Gfeller - Initial Contribution
20  *
21  */
22 public class ICloudDeviceLocation {
23     private double altitude;
24
25     private int floorLevel;
26
27     private double horizontalAccuracy;
28
29     private boolean isInaccurate;
30
31     private boolean isOld;
32
33     private double latitude;
34
35     private boolean locationFinished;
36
37     private String locationType;
38
39     private double longitude;
40
41     private String positionType;
42
43     private long timeStamp;
44
45     private double verticalAccuracy;
46
47     public double getAltitude() {
48         return this.altitude;
49     }
50
51     public int getFloorLevel() {
52         return this.floorLevel;
53     }
54
55     public double getHorizontalAccuracy() {
56         return this.horizontalAccuracy;
57     }
58
59     public boolean getIsInaccurate() {
60         return this.isInaccurate;
61     }
62
63     public boolean getIsOld() {
64         return this.isOld;
65     }
66
67     public double getLatitude() {
68         return this.latitude;
69     }
70
71     public boolean getLocationFinished() {
72         return this.locationFinished;
73     }
74
75     public String getLocationType() {
76         return this.locationType;
77     }
78
79     public double getLongitude() {
80         return this.longitude;
81     }
82
83     public String getPositionType() {
84         return this.positionType;
85     }
86
87     public long getTimeStamp() {
88         return this.timeStamp;
89     }
90
91     public double getVerticalAccuracy() {
92         return this.verticalAccuracy;
93     }
94 }