2 * Copyright (c) 2010-2020 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.ojelectronics.internal.models.userprofile;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * Model for signing sin
22 * @author Christian Kittel - Initial contribution
25 public class PostSignInQueryModel {
27 @SerializedName("APIKEY")
28 public String apiKey = "";
30 public String userName = "";
32 public String password = "";
34 public int customerId;
36 public int clientSWVersion;
41 * @param apiKey API-Key
44 public PostSignInQueryModel withApiKey(String apiKey) {
52 * @param userName User-Name for API access
55 public PostSignInQueryModel withUserName(String userName) {
56 this.userName = userName;
63 * @param password Password for API access
66 public PostSignInQueryModel withPassword(String password) {
67 this.password = password;
74 * @param customerId Customer Id
77 public PostSignInQueryModel withCustomerId(int customerId) {
78 this.customerId = customerId;
83 * Add Software Version
85 * @param clientSWVersion Software Version
88 public PostSignInQueryModel withClientSWVersion(int clientSWVersion) {
89 this.clientSWVersion = clientSWVersion;