2 * Copyright (c) 2010-2021 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 org.jetbrains.annotations.NotNull;
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
21 * This DTO class wraps the login step 2 json structure
23 * @author Marcel Verpaalen - Initial contribution
25 public class CloudLoginDTO {
30 @SerializedName("psecurity")
32 private String psecurity;
33 @SerializedName("nonce")
35 private Integer nonce;
36 @SerializedName("ssecurity")
38 private String ssecurity;
39 @SerializedName("passToken")
41 private String passToken;
42 @SerializedName("userId")
44 private String userId;
45 @SerializedName("cUserId")
47 private String cUserId;
48 @SerializedName("securityStatus")
50 private Integer securityStatus;
51 @SerializedName("pwd")
54 @SerializedName("code")
57 @SerializedName("desc")
60 @SerializedName("location")
62 private String location;
63 @SerializedName("captchaUrl")
65 private Object captchaUrl;
67 public @NotNull String getSsecurity() {
68 return ssecurity != null ? ssecurity : "";
71 public @NotNull String getUserId() {
72 return userId != null ? userId : "";
75 public @NotNull String getcUserId() {
76 return cUserId != null ? cUserId : "";
79 public @NotNull String getPassToken() {
80 return passToken != null ? passToken : "";
83 public @NotNull String getLocation() {
84 return location != null ? location : "";
87 public String getCode() {
91 public String getQs() {
95 public String getPsecurity() {
99 public Integer getNonce() {
103 public String getCUserId() {
107 public Integer getSecurityStatus() {
108 return securityStatus;
111 public Integer getPwd() {
115 public String getDesc() {
119 public Object getCaptchaUrl() {
123 public void setCaptchaUrl(Object captchaUrl) {
124 this.captchaUrl = captchaUrl;