]> git.basschouten.com Git - openhab-addons.git/blob
ab5ce5063d9f21f9948e596c9667a3ad2afd4af7
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.bmwconnecteddrive.internal.dto.auth;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link Timer} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  */
22 public class AuthResponse {
23     @SerializedName("access_token")
24     public String accessToken;
25     @SerializedName("token_type")
26     public String tokenType;
27     @SerializedName("expires_in")
28     public int expiresIn;
29
30     @Override
31     public String toString() {
32         return "Token " + accessToken + " type " + tokenType + " expires in " + expiresIn;
33     }
34 }