2 * Copyright (c) 2010-2023 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.icloud.internal.handler.dto.json.response;
16 * Serializable class to parse json response received from the Apple server.
17 * Contains device location information.
19 * @author Patrik Gfeller - Initial Contribution
22 public class ICloudDeviceLocation {
23 private double altitude;
25 private int floorLevel;
27 private double horizontalAccuracy;
29 private boolean isInaccurate;
31 private boolean isOld;
33 private double latitude;
35 private boolean locationFinished;
37 private String locationType;
39 private double longitude;
41 private String positionType;
43 private long timeStamp;
45 private double verticalAccuracy;
47 public double getAltitude() {
51 public int getFloorLevel() {
52 return this.floorLevel;
55 public double getHorizontalAccuracy() {
56 return this.horizontalAccuracy;
59 public boolean getIsInaccurate() {
60 return this.isInaccurate;
63 public boolean getIsOld() {
67 public double getLatitude() {
71 public boolean getLocationFinished() {
72 return this.locationFinished;
75 public String getLocationType() {
76 return this.locationType;
79 public double getLongitude() {
80 return this.longitude;
83 public String getPositionType() {
84 return this.positionType;
87 public long getTimeStamp() {
88 return this.timeStamp;
91 public double getVerticalAccuracy() {
92 return this.verticalAccuracy;