-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] cloud login issues improvement (#13715)
* [miio] cloud login issues improvement * Small change in debug loggin is login issues are expected * Additional trouble shooting steps in readme * Fix duplicate name in device list preventing readme maker running * Catch a json exception in readme maker close #13611 close #7459 * [miio] fix strange/foreign characters in readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
- Loading branch information
Showing
10 changed files
with
1,307 additions
and
1,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
122 changes: 122 additions & 0 deletions
122
...ab.binding.miio/src/main/java/org/openhab/binding/miio/internal/cloud/CloudLogin1DTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/** | ||
* Copyright (c) 2010-2022 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.miio.internal.cloud; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* This DTO class wraps the login step 1 json structure | ||
* | ||
* @author Marcel Verpaalen - Initial contribution | ||
*/ | ||
public class CloudLogin1DTO { | ||
@SerializedName("serviceParam") | ||
@Expose | ||
private String serviceParam; | ||
@SerializedName("qs") | ||
@Expose | ||
private String qs; | ||
@SerializedName("code") | ||
@Expose | ||
private Integer code; | ||
@SerializedName("description") | ||
@Expose | ||
private String description; | ||
@SerializedName("securityStatus") | ||
@Expose | ||
private Integer securityStatus; | ||
@SerializedName("_sign") | ||
@Expose | ||
private String sign; | ||
@SerializedName("sid") | ||
@Expose | ||
private String sid; | ||
@SerializedName("result") | ||
@Expose | ||
private String result; | ||
@SerializedName("captchaUrl") | ||
@Expose | ||
private String captchaUrl; | ||
@SerializedName("callback") | ||
@Expose | ||
private String callback; | ||
@SerializedName("location") | ||
@Expose | ||
private String location; | ||
@SerializedName("pwd") | ||
@Expose | ||
private Integer pwd; | ||
@SerializedName("child") | ||
@Expose | ||
private Integer child; | ||
@SerializedName("desc") | ||
@Expose | ||
private String desc; | ||
|
||
public String getServiceParam() { | ||
return serviceParam; | ||
} | ||
|
||
public String getQs() { | ||
return qs; | ||
} | ||
|
||
public Integer getCode() { | ||
return code; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public Integer getSecurityStatus() { | ||
return securityStatus; | ||
} | ||
|
||
public String getSign() { | ||
return sign; | ||
} | ||
|
||
public String getSid() { | ||
return sid; | ||
} | ||
|
||
public String getResult() { | ||
return result; | ||
} | ||
|
||
public String getCaptchaUrl() { | ||
return captchaUrl; | ||
} | ||
|
||
public String getCallback() { | ||
return callback; | ||
} | ||
|
||
public String getLocation() { | ||
return location; | ||
} | ||
|
||
public Integer getPwd() { | ||
return pwd; | ||
} | ||
|
||
public Integer getChild() { | ||
return child; | ||
} | ||
|
||
public String getDesc() { | ||
return desc; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.