]> git.basschouten.com Git - openhab-addons.git/blob
4c26f7a0f926e9648e790827ad8fbdc5fa21ecfa
[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.vesync.internal.dto.responses;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Contains data about the logged in user - including the accountID and token's used
19  * for authenticating other payload's.
20  *
21  * @see unit test - Result may not be in respone if not authenticated
22  *
23  * @author David Goodyear - Initial contribution
24  */
25 public class VeSyncUserSession {
26
27     public String token;
28
29     public String getToken() {
30         return token;
31     }
32
33     @SerializedName("registerTime")
34     public String registerTime;
35
36     @SerializedName("accountID")
37     public String accountId;
38
39     public String getAccountId() {
40         return accountId;
41     }
42
43     @SerializedName("registerAppVersion")
44     public String registerAppVersion;
45
46     @SerializedName("countryCode")
47     public String countryCode;
48
49     @SerializedName("acceptLanguage")
50     public String acceptLanguage;
51
52     @Override
53     public String toString() {
54         return "Data [user=AB" + ", token=" + token + "]";
55     }
56 }