]> git.basschouten.com Git - openhab-addons.git/blob
92d6e6b7f73d93fdcd20cf56aa7de0686f61a318
[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 AuthorizeResponseDTO} is responsible for
19  *
20  * @author Mark Hilbush - Initial contribution
21  */
22 public class AuthorizeResponseDTO extends AbstractAuthResponseDTO {
23
24     /*
25      * The PIN a user enters in the web portal.
26      */
27     @SerializedName("ecobeePin")
28     public String pin;
29
30     /*
31      * The authorization token needed to request the access and refresh tokens.
32      */
33     @SerializedName("code")
34     public String code;
35
36     /*
37      * The requested Scope from the original request. This must match the original request.
38      */
39     @SerializedName("scope")
40     public String scope;
41
42     /*
43      * The number of minutes until the PIN expires. Ensure you inform the user how much time they have.
44      */
45     @SerializedName("expires_in")
46     public Integer expiresIn;
47
48     /*
49      * The minimum amount of seconds which must pass between polling attempts for a token.
50      */
51     @SerializedName("interval")
52     public Integer interval;
53 }