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.ecobee.internal.dto.oauth;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link TokenResponseDTO} is responsible for
20 * @author Mark Hilbush - Initial contribution
22 public class TokenResponseDTO extends AbstractAuthResponseDTO {
25 * Access token to be used in future API requests.
27 @SerializedName("access_token")
28 public String accessToken;
31 * Contains the string "Bearer"
33 @SerializedName("token_type")
34 public String tokenType;
37 * Number of seconds until the access token will expire.
39 @SerializedName("expires_in")
40 public Integer expiresIn;
43 * Token used to request a new access token.
45 @SerializedName("refresh_token")
46 public String refreshToken;
49 * Matches the scope included in the token request.
51 @SerializedName("scope")