2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.miio.internal.cloud;
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
19 * This DTO class wraps the login step 2 json structure
21 * @author Marcel Verpaalen - Initial contribution
23 public class CloudLoginDTO {
28 @SerializedName("psecurity")
30 private String psecurity;
31 @SerializedName("nonce")
33 private Integer nonce;
34 @SerializedName("ssecurity")
36 private String ssecurity;
37 @SerializedName("passToken")
39 private String passToken;
40 @SerializedName("userId")
42 private String userId;
43 @SerializedName("cUserId")
45 private String cUserId;
46 @SerializedName("securityStatus")
48 private Integer securityStatus;
49 @SerializedName("pwd")
52 @SerializedName("code")
55 @SerializedName("desc")
58 @SerializedName("location")
60 private String location;
61 @SerializedName("captchaUrl")
63 private Object captchaUrl;
65 public String getSsecurity() {
66 return ssecurity != null ? ssecurity : "";
69 public String getUserId() {
70 return userId != null ? userId : "";
73 public String getcUserId() {
74 return cUserId != null ? cUserId : "";
77 public String getPassToken() {
78 return passToken != null ? passToken : "";
81 public String getLocation() {
82 return location != null ? location : "";
85 public String getCode() {
89 public String getQs() {
93 public String getPsecurity() {
97 public Integer getNonce() {
101 public String getCUserId() {
105 public Integer getSecurityStatus() {
106 return securityStatus;
109 public Integer getPwd() {
113 public String getDesc() {
117 public Object getCaptchaUrl() {
121 public void setCaptchaUrl(Object captchaUrl) {
122 this.captchaUrl = captchaUrl;