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 AuthorizeResponseDTO} is responsible for
20 * @author Mark Hilbush - Initial contribution
22 public class AuthorizeResponseDTO extends AbstractAuthResponseDTO {
25 * The PIN a user enters in the web portal.
27 @SerializedName("ecobeePin")
31 * The authorization token needed to request the access and refresh tokens.
33 @SerializedName("code")
37 * The requested Scope from the original request. This must match the original request.
39 @SerializedName("scope")
43 * The number of minutes until the PIN expires. Ensure you inform the user how much time they have.
45 @SerializedName("expires_in")
46 public Integer expiresIn;
49 * The minimum amount of seconds which must pass between polling attempts for a token.
51 @SerializedName("interval")
52 public Integer interval;