]> git.basschouten.com Git - openhab-addons.git/blob
0c4b453efa57125365cd0387db1a284ddb147151
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.json.request;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Serializable request for icloud device data.
19  *
20  * @author Patrik Gfeller - Initial Contribution
21  *
22  */
23 @NonNullByDefault
24 public class ICloudAccountDataRequest {
25     @SuppressWarnings("unused")
26     private ClientContext clientContext;
27
28     private ICloudAccountDataRequest() {
29         this.clientContext = ClientContext.defaultInstance();
30     }
31
32     public static ICloudAccountDataRequest defaultInstance() {
33         return new ICloudAccountDataRequest();
34     }
35
36     public static class ClientContext {
37         @SuppressWarnings("unused")
38         private String appName = "iCloud Find (Web)";
39         @SuppressWarnings("unused")
40         private boolean fmly = true;
41         @SuppressWarnings("unused")
42         private String appVersion = "2.0";
43         @SuppressWarnings("unused")
44         private String timezone = "US/Eastern";
45         @SuppressWarnings("unused")
46         private int inactiveTime = 2255;
47         @SuppressWarnings("unused")
48         private String apiVersion = "3.0";
49         @SuppressWarnings("unused")
50         private String webStats = "0:15";
51
52         private ClientContext() {
53             // empty to hide constructor
54         }
55
56         public static ClientContext defaultInstance() {
57             return new ClientContext();
58         }
59     }
60 }