]> git.basschouten.com Git - openhab-addons.git/blob
eb16874bc127f0ccf4514abe1daf795adfa71cb1
[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.somfytahoma.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link SomfyTahomaOauth2Reponse} holds information about Oauth2 login
21  * response to your CozyTouch account.
22  *
23  * @author Benjamin Lafois - Initial contribution
24  */
25 @NonNullByDefault
26 public class SomfyTahomaOauth2Reponse {
27     private String scope = "";
28
29     @SerializedName("token_type")
30     private String tokenType = "";
31
32     @SerializedName("expires_in")
33     private int expiresIn = 0;
34
35     @SerializedName("refresh_token")
36     private String refreshToken = "";
37
38     @SerializedName("access_token")
39     private String accessToken = "";
40
41     public String getScope() {
42         return scope;
43     }
44
45     public void setScope(String scope) {
46         this.scope = scope;
47     }
48
49     public String getTokenType() {
50         return tokenType;
51     }
52
53     public void setTokenType(String tokenType) {
54         this.tokenType = tokenType;
55     }
56
57     public int getExpiresIn() {
58         return expiresIn;
59     }
60
61     public void setExpiresIn(int expiresIn) {
62         this.expiresIn = expiresIn;
63     }
64
65     public String getRefreshToken() {
66         return refreshToken;
67     }
68
69     public void setRefreshToken(String refreshToken) {
70         this.refreshToken = refreshToken;
71     }
72
73     public String getAccessToken() {
74         return accessToken;
75     }
76
77     public void setAccessToken(String accessToken) {
78         this.accessToken = accessToken;
79     }
80 }