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.evohome.internal.api.models.v2.response;
15 import com.google.gson.annotations.SerializedName;
18 * Response model for the authentication
20 * @author Jasper van Zuijlen - Initial contribution
23 public class Authentication {
25 @SerializedName("access_token")
26 private String accessToken;
28 @SerializedName("token_type")
29 private String tokenType;
31 @SerializedName("expires_in")
32 private int expiresIn;
34 @SerializedName("refresh_token")
35 private String refreshToken;
37 @SerializedName("scope")
40 /** Convenience variable for current system time in seconds */
41 private long systemTime;
43 public String getAccessToken() {
47 public int getExpiresIn() {
51 public String getRefreshToken() {
55 public void setSystemTime(long systemTime) {
56 this.systemTime = systemTime;
59 public long getSystemTime() {