]> git.basschouten.com Git - openhab-addons.git/blob
e42ecbd0175d098622e07153cd71544674a910a6
[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.ecobee.internal.dto.oauth;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link TokenResponseDTO} is responsible for
19  *
20  * @author Mark Hilbush - Initial contribution
21  */
22 public class TokenResponseDTO extends AbstractAuthResponseDTO {
23
24     /*
25      * Access token to be used in future API requests.
26      */
27     @SerializedName("access_token")
28     public String accessToken;
29
30     /*
31      * Contains the string "Bearer"
32      */
33     @SerializedName("token_type")
34     public String tokenType;
35
36     /*
37      * Number of seconds until the access token will expire.
38      */
39     @SerializedName("expires_in")
40     public Integer expiresIn;
41
42     /*
43      * Token used to request a new access token.
44      */
45     @SerializedName("refresh_token")
46     public String refreshToken;
47
48     /*
49      * Matches the scope included in the token request.
50      */
51     @SerializedName("scope")
52     public String scope;
53 }