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;
15 import java.util.ArrayList;
18 * Serializable class to parse json response received from the Apple server.
19 * Contains device specific status information.
21 * @author Patrik Gfeller - Initial Contribution
24 public class ICloudDeviceInformation {
25 private boolean activationLocked;
27 private ArrayList<Object> audioChannels;
29 private double batteryLevel;
31 private String batteryStatus;
33 private boolean canWipeAfterLock;
35 private boolean darkWake;
37 private String deviceClass;
39 private String deviceColor;
41 private String deviceDisplayName;
43 private String deviceModel;
45 private int deviceStatus;
47 private ICloudDeviceFeatures features;
49 private boolean fmlyShare;
53 private boolean isLocating;
55 private boolean isMac;
57 private ICloudDeviceLocation location;
59 private boolean locationCapable;
61 private boolean locationEnabled;
63 private boolean locFoundEnabled;
65 private Object lockedTimestamp;
67 private Object lostDevice;
69 private boolean lostModeCapable;
71 private boolean lostModeEnabled;
73 private String lostTimestamp;
75 private boolean lowPowerMode;
77 private int maxMsgChar;
81 private String modelDisplayName;
87 private int passcodeLength;
91 private String rawDeviceModel;
93 private Object remoteLock;
95 private Object remoteWipe;
99 private boolean thisDevice;
101 private Object trackingInfo;
103 private Object wipedTimestamp;
105 private boolean wipeInProgress;
107 public boolean getActivationLocked() {
108 return this.activationLocked;
111 public ArrayList<Object> getAudioChannels() {
112 return this.audioChannels;
115 public double getBatteryLevel() {
116 return this.batteryLevel;
119 public String getBatteryStatus() {
120 return this.batteryStatus;
123 public boolean getCanWipeAfterLock() {
124 return this.canWipeAfterLock;
127 public boolean getDarkWake() {
128 return this.darkWake;
131 public String getDeviceClass() {
132 return this.deviceClass;
135 public String getDeviceColor() {
136 return this.deviceColor;
139 public String getDeviceDisplayName() {
140 return this.deviceDisplayName;
143 public String getDeviceModel() {
144 return this.deviceModel;
147 public int getDeviceStatus() {
148 return this.deviceStatus;
151 public ICloudDeviceFeatures getFeatures() {
152 return this.features;
155 public boolean getFmlyShare() {
156 return this.fmlyShare;
159 public String getId() {
163 public boolean getIsLocating() {
164 return this.isLocating;
167 public boolean getIsMac() {
171 public ICloudDeviceLocation getLocation() {
172 return this.location;
175 public boolean getLocationCapable() {
176 return this.locationCapable;
179 public boolean getLocationEnabled() {
180 return this.locationEnabled;
183 public boolean getLocFoundEnabled() {
184 return this.locFoundEnabled;
187 public Object getLockedTimestamp() {
188 return this.lockedTimestamp;
191 public Object getLostDevice() {
192 return this.lostDevice;
195 public boolean getLostModeCapable() {
196 return this.lostModeCapable;
199 public boolean getLostModeEnabled() {
200 return this.lostModeEnabled;
203 public String getLostTimestamp() {
204 return this.lostTimestamp;
207 public boolean getLowPowerMode() {
208 return this.lowPowerMode;
211 public int getMaxMsgChar() {
212 return this.maxMsgChar;
215 public Object getMesg() {
219 public String getModelDisplayName() {
220 return this.modelDisplayName;
223 public Object getMsg() {
227 public String getName() {
231 public int getPasscodeLength() {
232 return this.passcodeLength;
235 public String getPrsId() {
239 public String getRawDeviceModel() {
240 return this.rawDeviceModel;
243 public Object getRemoteLock() {
244 return this.remoteLock;
247 public Object getRemoteWipe() {
248 return this.remoteWipe;
251 public Object getSnd() {
255 public boolean getThisDevice() {
256 return this.thisDevice;
259 public Object getTrackingInfo() {
260 return this.trackingInfo;
263 public Object getWipedTimestamp() {
264 return this.wipedTimestamp;
267 public boolean getWipeInProgress() {
268 return this.wipeInProgress;