]> git.basschouten.com Git - openhab-addons.git/blob
1c606ae4eb5351a78c963aea6e17fcd6ce08a98d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Model for signing sin
21  *
22  * @author Christian Kittel - Initial contribution
23  */
24 @NonNullByDefault
25 public class PostSignInQueryModel {
26
27     @SerializedName("APIKEY")
28     public String apiKey = "";
29
30     public String userName = "";
31
32     public String password = "";
33
34     public int customerId;
35
36     public int clientSWVersion;
37
38     /**
39      * Add API-Key
40      *
41      * @param apiKey API-Key
42      * @return Model
43      */
44     public PostSignInQueryModel withApiKey(String apiKey) {
45         this.apiKey = apiKey;
46         return this;
47     }
48
49     /**
50      * Add User-Name
51      *
52      * @param userName User-Name for API access
53      * @return Model
54      */
55     public PostSignInQueryModel withUserName(String userName) {
56         this.userName = userName;
57         return this;
58     }
59
60     /**
61      * Add Password
62      *
63      * @param password Password for API access
64      * @return Model
65      */
66     public PostSignInQueryModel withPassword(String password) {
67         this.password = password;
68         return this;
69     }
70
71     /**
72      * Add customer ID
73      *
74      * @param customerId Customer Id
75      * @return Model
76      */
77     public PostSignInQueryModel withCustomerId(int customerId) {
78         this.customerId = customerId;
79         return this;
80     }
81
82     /**
83      * Add Software Version
84      *
85      * @param clientSWVersion Software Version
86      * @return Model
87      */
88     public PostSignInQueryModel withClientSWVersion(int clientSWVersion) {
89         this.clientSWVersion = clientSWVersion;
90         return this;
91     }
92 }