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 org.eclipse.jdt.annotation.Nullable;
18 * Serializable class to parse json response received from the Apple server.
20 * @author Patrik Gfeller - Initial Contribution
23 public class ICloudServerContext {
25 private String authToken;
27 private int callbackIntervalInMS;
29 private boolean classicUser;
31 private String clientId;
33 private boolean cloudUser;
35 private String deviceLoadStatus;
37 private boolean enable2FAErase;
39 private boolean enable2FAFamilyActions;
41 private boolean enable2FAFamilyRemove;
43 private boolean enableMapStats;
45 private String imageBaseUrl;
49 private boolean isHSA;
51 private Object lastSessionExtensionTime;
55 private int maxCallbackIntervalInMS;
57 private int maxDeviceLoadTime;
59 private int maxLocatingTime;
61 private int minCallbackIntervalInMS;
63 private int minTrackLocThresholdInMts;
65 private String preferredLanguage;
67 private long prefsUpdateTime;
71 private long serverTimestamp;
73 private int sessionLifespan;
75 private boolean showSllNow;
77 private ICloudServerContextTimezone timezone;
79 private int trackInfoCacheDurationInSecs;
81 private boolean useAuthWidget;
83 private boolean validRegion;
85 public String getAuthToken() {
86 return this.authToken;
89 public int getCallbackIntervalInMS() {
90 return this.callbackIntervalInMS;
93 public boolean getClassicUser() {
94 return this.classicUser;
97 public String getClientId() {
101 public boolean getCloudUser() {
102 return this.cloudUser;
105 public String getDeviceLoadStatus() {
106 return this.deviceLoadStatus;
109 public boolean getEnable2FAErase() {
110 return this.enable2FAErase;
113 public boolean getEnable2FAFamilyActions() {
114 return this.enable2FAFamilyActions;
117 public boolean getEnable2FAFamilyRemove() {
118 return this.enable2FAFamilyRemove;
121 public boolean getEnableMapStats() {
122 return this.enableMapStats;
125 public String getImageBaseUrl() {
126 return this.imageBaseUrl;
129 public String getInfo() {
133 public boolean getIsHSA() {
137 public Object getLastSessionExtensionTime() {
138 return this.lastSessionExtensionTime;
141 public int getMacCount() {
142 return this.macCount;
145 public int getMaxCallbackIntervalInMS() {
146 return this.maxCallbackIntervalInMS;
149 public int getMaxDeviceLoadTime() {
150 return this.maxDeviceLoadTime;
153 public int getMaxLocatingTime() {
154 return this.maxLocatingTime;
157 public int getMinCallbackIntervalInMS() {
158 return this.minCallbackIntervalInMS;
161 public int getMinTrackLocThresholdInMts() {
162 return this.minTrackLocThresholdInMts;
165 public String getPreferredLanguage() {
166 return this.preferredLanguage;
169 public long getPrefsUpdateTime() {
170 return this.prefsUpdateTime;
173 public String getPrsId() {
177 public long getServerTimestamp() {
178 return this.serverTimestamp;
181 public int getSessionLifespan() {
182 return this.sessionLifespan;
185 public boolean getShowSllNow() {
186 return this.showSllNow;
189 public ICloudServerContextTimezone getTimezone() {
190 return this.timezone;
193 public int getTrackInfoCacheDurationInSecs() {
194 return this.trackInfoCacheDurationInSecs;
197 public boolean getUseAuthWidget() {
198 return this.useAuthWidget;
201 public boolean getValidRegion() {
202 return this.validRegion;