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.vesync.internal.dto.responses;
15 import com.google.gson.annotations.SerializedName;
18 * Contains data about the logged in user - including the accountID and token's used
19 * for authenticating other payload's.
21 * @implNote See unit test - Result may not be in respone if not authenticated
23 * @author David Goodyear - Initial contribution
25 public class VeSyncUserSession {
29 public String getToken() {
33 @SerializedName("registerTime")
34 public String registerTime;
36 @SerializedName("accountID")
37 public String accountId;
39 public String getAccountId() {
43 @SerializedName("registerAppVersion")
44 public String registerAppVersion;
46 @SerializedName("countryCode")
47 public String countryCode;
49 @SerializedName("acceptLanguage")
50 public String acceptLanguage;
53 public String toString() {
54 return "Data [user=AB" + ", token=" + token + "]";