]> git.basschouten.com Git - openhab-addons.git/blob
4d615deedd401617d9155fa53b0dcb46e1b6f865
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.miio.internal.cloud;
14
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
17
18 /**
19  * This DTO class wraps the login step 2 json structure
20  *
21  * @author Marcel Verpaalen - Initial contribution
22  */
23 public class CloudLoginDTO {
24
25     @SerializedName("qs")
26     @Expose
27     private String qs;
28     @SerializedName("psecurity")
29     @Expose
30     private String psecurity;
31     @SerializedName("nonce")
32     @Expose
33     private Integer nonce;
34     @SerializedName("ssecurity")
35     @Expose
36     private String ssecurity;
37     @SerializedName("passToken")
38     @Expose
39     private String passToken;
40     @SerializedName("userId")
41     @Expose
42     private String userId;
43     @SerializedName("cUserId")
44     @Expose
45     private String cUserId;
46     @SerializedName("securityStatus")
47     @Expose
48     private Integer securityStatus;
49     @SerializedName("pwd")
50     @Expose
51     private Integer pwd;
52     @SerializedName("code")
53     @Expose
54     private String code;
55     @SerializedName("desc")
56     @Expose
57     private String desc;
58     @SerializedName("location")
59     @Expose
60     private String location;
61     @SerializedName("captchaUrl")
62     @Expose
63     private Object captchaUrl;
64
65     public String getSsecurity() {
66         return ssecurity != null ? ssecurity : "";
67     }
68
69     public String getUserId() {
70         return userId != null ? userId : "";
71     }
72
73     public String getcUserId() {
74         return cUserId != null ? cUserId : "";
75     }
76
77     public String getPassToken() {
78         return passToken != null ? passToken : "";
79     }
80
81     public String getLocation() {
82         return location != null ? location : "";
83     }
84
85     public String getCode() {
86         return code;
87     }
88
89     public String getQs() {
90         return qs;
91     }
92
93     public String getPsecurity() {
94         return psecurity;
95     }
96
97     public Integer getNonce() {
98         return nonce;
99     }
100
101     public String getCUserId() {
102         return cUserId;
103     }
104
105     public Integer getSecurityStatus() {
106         return securityStatus;
107     }
108
109     public Integer getPwd() {
110         return pwd;
111     }
112
113     public String getDesc() {
114         return desc;
115     }
116
117     public Object getCaptchaUrl() {
118         return captchaUrl;
119     }
120
121     public void setCaptchaUrl(Object captchaUrl) {
122         this.captchaUrl = captchaUrl;
123     }
124 }