You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/MyBMWBridgeConfiguration.java
+56-5
Original file line number
Diff line number
Diff line change
@@ -19,28 +19,79 @@
19
19
* The {@link MyBMWBridgeConfiguration} class contains fields mapping thing configuration parameters.
20
20
*
21
21
* @author Bernd Weymann - Initial contribution
22
-
* @author Martin Grassl - renamed
22
+
* @author Martin Grassl - renamed and added hcaptchastring
23
23
*/
24
24
@NonNullByDefault
25
25
publicclassMyBMWBridgeConfiguration {
26
26
27
27
/**
28
28
* Depending on the location the correct server needs to be called
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/console/MyBMWCommandExtension.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/discovery/VehicleDiscovery.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/dto/auth/AuthResponse.java
+11-1
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,27 @@
20
20
* The {@link AuthResponse} Data Transfer Object
21
21
*
22
22
* @author Bernd Weymann - Initial contribution
23
+
* @author Martin Grassl - extracted from myBmwProxy
23
24
*/
24
25
publicclassAuthResponse {
25
26
@SerializedName("access_token")
26
27
publicStringaccessToken = Constants.EMPTY;
28
+
29
+
@SerializedName("refresh_token")
30
+
publicStringrefreshToken = Constants.EMPTY;
31
+
27
32
@SerializedName("token_type")
28
33
publicStringtokenType = Constants.EMPTY;
34
+
35
+
@SerializedName("gcid")
36
+
publicStringgcid = Constants.EMPTY;
37
+
29
38
@SerializedName("expires_in")
30
39
publicintexpiresIn = -1;
31
40
32
41
@Override
33
42
publicStringtoString() {
34
-
return"Token " + accessToken + " type " + tokenType + " expires in " + expiresIn;
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/MyBMWBridgeHandler.java
+42-12
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ public class MyBMWBridgeHandler extends BaseBridgeHandler {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/RemoteServiceExecutor.java
+4-4
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ private void getState() {
83
83
serviceExecuting.ifPresentOrElse(service -> {
84
84
if (counter >= GIVEUP_COUNTER) {
85
85
logger.warn("Giving up updating state for {} after {} times", service, GIVEUP_COUNTER);
0 commit comments