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.somfytahoma.internal.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link SomfyTahomaOauth2Reponse} holds information about Oauth2 login
21 * response to your CozyTouch account.
23 * @author Benjamin Lafois - Initial contribution
26 public class SomfyTahomaOauth2Reponse {
27 private String scope = "";
29 @SerializedName("token_type")
30 private String tokenType = "";
32 @SerializedName("expires_in")
33 private int expiresIn = 0;
35 @SerializedName("refresh_token")
36 private String refreshToken = "";
38 @SerializedName("access_token")
39 private String accessToken = "";
41 public String getScope() {
45 public void setScope(String scope) {
49 public String getTokenType() {
53 public void setTokenType(String tokenType) {
54 this.tokenType = tokenType;
57 public int getExpiresIn() {
61 public void setExpiresIn(int expiresIn) {
62 this.expiresIn = expiresIn;
65 public String getRefreshToken() {
69 public void setRefreshToken(String refreshToken) {
70 this.refreshToken = refreshToken;
73 public String getAccessToken() {
77 public void setAccessToken(String accessToken) {
78 this.accessToken = accessToken;