]> git.basschouten.com Git - openhab-addons.git/blob
0884878fc6bff62e111b8458261655892c388425
[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.mybmw.internal.dto.auth;
14
15 import java.util.List;
16
17 /**
18  * The {@link AuthQueryResponse} Data Transfer Object
19  *
20  * @author Bernd Weymann - Initial contribution
21  * @author Martin Grassl - add toString for debugging
22  */
23 public class AuthQueryResponse {
24     public String clientName;// ": "mybmwapp",
25     public String clientSecret;// ": "c0e3393d-70a2-4f6f-9d3c-8530af64d552",
26     public String clientId;// ": "31c357a0-7a1d-4590-aa99-33b97244d048",
27     public String gcdmBaseUrl;// ": "https://customer.bmwgroup.com",
28     public String returnUrl;// ": "com.bmw.connected://oauth",
29     public String brand;// ": "bmw",
30     public String language;// ": "en",
31     public String country;// ": "US",
32     public String authorizationEndpoint;// ": "https://customer.bmwgroup.com/oneid/login",
33     public String tokenEndpoint;// ": "https://customer.bmwgroup.com/gcdm/oauth/token",
34     public List<String> scopes;// ;": [
35     // "openid",
36     // "profile",
37     // "email",
38     // "offline_access",
39     // "smacc",
40     // "vehicle_data",
41     // "perseus",
42     // "dlm",
43     // "svds",
44     // "cesim",
45     // "vsapi",
46     // "remote_services",
47     // "fupo",
48     // "authenticate_user"
49     // ],
50     public List<String> promptValues; // ": ["login"]
51     /*
52      * (non-Javadoc)
53      * 
54      * @see java.lang.Object#toString()
55      */
56
57     @Override
58     public String toString() {
59         return "AuthQueryResponse [clientName=" + clientName + ", clientSecret=" + clientSecret + ", clientId="
60                 + clientId + ", gcdmBaseUrl=" + gcdmBaseUrl + ", returnUrl=" + returnUrl + ", brand=" + brand
61                 + ", language=" + language + ", country=" + country + ", authorizationEndpoint=" + authorizationEndpoint
62                 + ", tokenEndpoint=" + tokenEndpoint + ", scopes=" + scopes + ", promptValues=" + promptValues + "]";
63     }
64 }