]> git.basschouten.com Git - openhab-addons.git/blob
992f0a7e501fe3425829abc150811cc06bbb7ef9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.vesync.internal.dto.requests;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link VeSyncLoginCredentials} is the Java class as a DTO to hold login credentials for the Vesync
19  * API.
20  *
21  * @author David Goodyear - Initial contribution
22  */
23 public class VeSyncLoginCredentials extends VeSyncRequest {
24
25     @SerializedName("email")
26     public String email;
27     @SerializedName("password")
28     public String passwordMd5;
29     @SerializedName("userType")
30     public String userType;
31     @SerializedName("devToken")
32     public String devToken = "";
33
34     public VeSyncLoginCredentials() {
35         super();
36         userType = "1";
37         method = "login";
38     }
39
40     public VeSyncLoginCredentials(String email, String password) {
41         this();
42         this.email = email;
43         this.passwordMd5 = password;
44     }
45 }