]> git.basschouten.com Git - openhab-addons.git/blob
abb4f6c5ef1a1c44bf4585cbdf4f6cf996b8a10d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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 import org.eclipse.jdt.annotation.Nullable;
16
17 /**
18  * Serializable class to parse json response received from the Apple server.
19  *
20  * @author Patrik Gfeller - Initial Contribution
21  *
22  */
23 public class ICloudServerContext {
24     @Nullable
25     private String authToken;
26
27     private int callbackIntervalInMS;
28
29     private boolean classicUser;
30
31     private String clientId;
32
33     private boolean cloudUser;
34
35     private String deviceLoadStatus;
36
37     private boolean enable2FAErase;
38
39     private boolean enable2FAFamilyActions;
40
41     private boolean enable2FAFamilyRemove;
42
43     private boolean enableMapStats;
44
45     private String imageBaseUrl;
46
47     private String info;
48
49     private boolean isHSA;
50
51     private Object lastSessionExtensionTime;
52
53     private int macCount;
54
55     private int maxCallbackIntervalInMS;
56
57     private int maxDeviceLoadTime;
58
59     private int maxLocatingTime;
60
61     private int minCallbackIntervalInMS;
62
63     private int minTrackLocThresholdInMts;
64
65     private String preferredLanguage;
66
67     private long prefsUpdateTime;
68
69     private String prsId;
70
71     private long serverTimestamp;
72
73     private int sessionLifespan;
74
75     private boolean showSllNow;
76
77     private ICloudServerContextTimezone timezone;
78
79     private int trackInfoCacheDurationInSecs;
80
81     private boolean useAuthWidget;
82
83     private boolean validRegion;
84
85     public String getAuthToken() {
86         return this.authToken;
87     }
88
89     public int getCallbackIntervalInMS() {
90         return this.callbackIntervalInMS;
91     }
92
93     public boolean getClassicUser() {
94         return this.classicUser;
95     }
96
97     public String getClientId() {
98         return this.clientId;
99     }
100
101     public boolean getCloudUser() {
102         return this.cloudUser;
103     }
104
105     public String getDeviceLoadStatus() {
106         return this.deviceLoadStatus;
107     }
108
109     public boolean getEnable2FAErase() {
110         return this.enable2FAErase;
111     }
112
113     public boolean getEnable2FAFamilyActions() {
114         return this.enable2FAFamilyActions;
115     }
116
117     public boolean getEnable2FAFamilyRemove() {
118         return this.enable2FAFamilyRemove;
119     }
120
121     public boolean getEnableMapStats() {
122         return this.enableMapStats;
123     }
124
125     public String getImageBaseUrl() {
126         return this.imageBaseUrl;
127     }
128
129     public String getInfo() {
130         return this.info;
131     }
132
133     public boolean getIsHSA() {
134         return this.isHSA;
135     }
136
137     public Object getLastSessionExtensionTime() {
138         return this.lastSessionExtensionTime;
139     }
140
141     public int getMacCount() {
142         return this.macCount;
143     }
144
145     public int getMaxCallbackIntervalInMS() {
146         return this.maxCallbackIntervalInMS;
147     }
148
149     public int getMaxDeviceLoadTime() {
150         return this.maxDeviceLoadTime;
151     }
152
153     public int getMaxLocatingTime() {
154         return this.maxLocatingTime;
155     }
156
157     public int getMinCallbackIntervalInMS() {
158         return this.minCallbackIntervalInMS;
159     }
160
161     public int getMinTrackLocThresholdInMts() {
162         return this.minTrackLocThresholdInMts;
163     }
164
165     public String getPreferredLanguage() {
166         return this.preferredLanguage;
167     }
168
169     public long getPrefsUpdateTime() {
170         return this.prefsUpdateTime;
171     }
172
173     public String getPrsId() {
174         return this.prsId;
175     }
176
177     public long getServerTimestamp() {
178         return this.serverTimestamp;
179     }
180
181     public int getSessionLifespan() {
182         return this.sessionLifespan;
183     }
184
185     public boolean getShowSllNow() {
186         return this.showSllNow;
187     }
188
189     public ICloudServerContextTimezone getTimezone() {
190         return this.timezone;
191     }
192
193     public int getTrackInfoCacheDurationInSecs() {
194         return this.trackInfoCacheDurationInSecs;
195     }
196
197     public boolean getUseAuthWidget() {
198         return this.useAuthWidget;
199     }
200
201     public boolean getValidRegion() {
202         return this.validRegion;
203     }
204 }