]> git.basschouten.com Git - openhab-addons.git/blob
ac90b23b62e8ae7bcb980c94f11d73b078cedbf4
[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.evohome.internal.api.models.v2.dto.response;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Response model for the authentication
19  *
20  * @author Jasper van Zuijlen - Initial contribution
21  *
22  */
23 public class Authentication {
24
25     @SerializedName("access_token")
26     private String accessToken;
27
28     @SerializedName("token_type")
29     private String tokenType;
30
31     @SerializedName("expires_in")
32     private int expiresIn;
33
34     @SerializedName("refresh_token")
35     private String refreshToken;
36
37     @SerializedName("scope")
38     private String scope;
39
40     /** Convenience variable for current system time in seconds */
41     private long systemTime;
42
43     public String getAccessToken() {
44         return accessToken;
45     }
46
47     public int getExpiresIn() {
48         return expiresIn;
49     }
50
51     public String getRefreshToken() {
52         return refreshToken;
53     }
54
55     public void setSystemTime(long systemTime) {
56         this.systemTime = systemTime;
57     }
58
59     public long getSystemTime() {
60         return systemTime;
61     }
62 }