]> git.basschouten.com Git - openhab-addons.git/blob
4ac8371bb31fd16d3f04fb56964a10c220484556
[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.ojelectronics.internal.models.userprofile;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.ojelectronics.internal.models.RequestModelBase;
17
18 /**
19  * Model for signing sin
20  *
21  * @author Christian Kittel - Initial contribution
22  */
23 @NonNullByDefault
24 public class PostSignInQueryModel extends RequestModelBase {
25
26     public String userName = "";
27
28     public String password = "";
29
30     public int customerId;
31
32     public int clientSWVersion;
33
34     /**
35      * Add User-Name
36      *
37      * @param userName User-Name for API access
38      * @return Model
39      */
40     public PostSignInQueryModel withUserName(String userName) {
41         this.userName = userName;
42         return this;
43     }
44
45     /**
46      * Add Password
47      *
48      * @param password Password for API access
49      * @return Model
50      */
51     public PostSignInQueryModel withPassword(String password) {
52         this.password = password;
53         return this;
54     }
55
56     /**
57      * Add customer ID
58      *
59      * @param customerId Customer Id
60      * @return Model
61      */
62     public PostSignInQueryModel withCustomerId(int customerId) {
63         this.customerId = customerId;
64         return this;
65     }
66
67     /**
68      * Add Software Version
69      *
70      * @param clientSWVersion Software Version
71      * @return Model
72      */
73     public PostSignInQueryModel withClientSWVersion(int clientSWVersion) {
74         this.clientSWVersion = clientSWVersion;
75         return this;
76     }
77 }