2 * Copyright 2017 Gregory Moyer
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openhab.binding.sleepiq.api.model;
18 public class LoginRequest
21 private String password;
23 public String getLogin()
28 public void setLogin(String login)
33 public LoginRequest withLogin(String login)
39 public String getPassword()
44 public void setPassword(String password)
46 this.password = password;
49 public LoginRequest withPassword(String password)
51 setPassword(password);
60 result = prime * result + ((login == null) ? 0 : login.hashCode());
61 result = prime * result + ((password == null) ? 0 : password.hashCode());
66 public boolean equals(Object obj)
76 if (!(obj instanceof LoginRequest))
80 LoginRequest other = (LoginRequest)obj;
83 if (other.login != null)
88 else if (!login.equals(other.login))
94 if (other.password != null)
99 else if (!password.equals(other.password))
107 public String toString()
109 StringBuilder builder = new StringBuilder();
110 builder.append("LoginRequest [login=");
111 builder.append(login);
112 builder.append(", password=");
113 builder.append(password);
115 return builder.toString();