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 String deviceDiscoveryId;
55 private boolean isLocating;
57 private boolean isMac;
59 private ICloudDeviceLocation location;
61 private boolean locationCapable;
63 private boolean locationEnabled;
65 private boolean locFoundEnabled;
67 private Object lockedTimestamp;
69 private Object lostDevice;
71 private boolean lostModeCapable;
73 private boolean lostModeEnabled;
75 private String lostTimestamp;
77 private boolean lowPowerMode;
79 private int maxMsgChar;
83 private String modelDisplayName;
89 private int passcodeLength;
93 private String rawDeviceModel;
95 private Object remoteLock;
97 private Object remoteWipe;
101 private boolean thisDevice;
103 private Object trackingInfo;
105 private Object wipedTimestamp;
107 private boolean wipeInProgress;
109 public boolean getActivationLocked() {
110 return this.activationLocked;
113 public ArrayList<Object> getAudioChannels() {
114 return this.audioChannels;
117 public double getBatteryLevel() {
118 return this.batteryLevel;
121 public String getBatteryStatus() {
122 return this.batteryStatus;
125 public boolean getCanWipeAfterLock() {
126 return this.canWipeAfterLock;
129 public boolean getDarkWake() {
130 return this.darkWake;
133 public String getDeviceClass() {
134 return this.deviceClass;
137 public String getDeviceColor() {
138 return this.deviceColor;
141 public String getDeviceDisplayName() {
142 return this.deviceDisplayName;
145 public String getDeviceModel() {
146 return this.deviceModel;
149 public int getDeviceStatus() {
150 return this.deviceStatus;
153 public ICloudDeviceFeatures getFeatures() {
154 return this.features;
157 public boolean getFmlyShare() {
158 return this.fmlyShare;
161 public String getId() {
165 public String getDeviceDiscoveryId() {
166 return this.deviceDiscoveryId;
169 public boolean getIsLocating() {
170 return this.isLocating;
173 public boolean getIsMac() {
177 public ICloudDeviceLocation getLocation() {
178 return this.location;
181 public boolean getLocationCapable() {
182 return this.locationCapable;
185 public boolean getLocationEnabled() {
186 return this.locationEnabled;
189 public boolean getLocFoundEnabled() {
190 return this.locFoundEnabled;
193 public Object getLockedTimestamp() {
194 return this.lockedTimestamp;
197 public Object getLostDevice() {
198 return this.lostDevice;
201 public boolean getLostModeCapable() {
202 return this.lostModeCapable;
205 public boolean getLostModeEnabled() {
206 return this.lostModeEnabled;
209 public String getLostTimestamp() {
210 return this.lostTimestamp;
213 public boolean getLowPowerMode() {
214 return this.lowPowerMode;
217 public int getMaxMsgChar() {
218 return this.maxMsgChar;
221 public Object getMesg() {
225 public String getModelDisplayName() {
226 return this.modelDisplayName;
229 public Object getMsg() {
233 public String getName() {
237 public int getPasscodeLength() {
238 return this.passcodeLength;
241 public String getPrsId() {
245 public String getRawDeviceModel() {
246 return this.rawDeviceModel;
249 public Object getRemoteLock() {
250 return this.remoteLock;
253 public Object getRemoteWipe() {
254 return this.remoteWipe;
257 public Object getSnd() {
261 public boolean getThisDevice() {
262 return this.thisDevice;
265 public Object getTrackingInfo() {
266 return this.trackingInfo;
269 public Object getWipedTimestamp() {
270 return this.wipedTimestamp;
273 public boolean getWipeInProgress() {
274 return this.wipeInProgress;