]> git.basschouten.com Git - openhab-addons.git/blob
3b693c807dad56d1fe7c089cbef92d8cfec260cd
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.vesync.internal.dto.requests;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link VeSyncRequest} is a Java class used as a DTO to hold the Vesync's API's common request data.
19  *
20  * @author David Goodyear - Initial contribution
21  */
22 public class VeSyncRequest {
23
24     @SerializedName("timeZone")
25     public String timeZone = "America/New_York";
26
27     @SerializedName("acceptLanguage")
28     public String acceptLanguage = "en";
29
30     @SerializedName("appVersion")
31     public String appVersion = "2.5.1";
32
33     @SerializedName("phoneBrand")
34     public String phoneBrand = "SM N9005";
35
36     @SerializedName("phoneOS")
37     public String phoneOS = "Android";
38
39     @SerializedName("traceId")
40     public String traceId = "";
41
42     @SerializedName("method")
43     public String method;
44
45     public VeSyncRequest() {
46         traceId = String.valueOf(System.currentTimeMillis());
47     }
48 }