de.aipark.api.chargingstation.ChargingOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aipark-api Show documentation
Show all versions of aipark-api Show documentation
AIPARK offers detailed parking information for more than 1.8 Mio parking areas in Germany
with nationwide coverage. Additionally, accurate occupancy predictions are derived using data from
a network of more than 5 million smartphones. Use the AIPARK API Explorer application to try out and
test the interface. Please send a request via email if you are a developer and require an API key.
We'll be in touch with you shortly. This application is provided via a demo backend environment.
Please note that API load tests do not reflect the performance of the productive system.
Mail: [email protected]
package de.aipark.api.chargingstation;
/**
* Created by torgen on 05.02.18.
*/
public class ChargingOperator {
private String name;
private String phone;
private String mail;
private String address;
public ChargingOperator() {
}
public ChargingOperator(String name, String phone, String mail, String address) {
this.name = name;
this.phone = phone;
this.mail = mail;
this.address = address;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ChargingOperator)) return false;
ChargingOperator that = (ChargingOperator) o;
if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false;
if (getPhone() != null ? !getPhone().equals(that.getPhone()) : that.getPhone() != null) return false;
if (getMail() != null ? !getMail().equals(that.getMail()) : that.getMail() != null) return false;
return getAddress() != null ? getAddress().equals(that.getAddress()) : that.getAddress() == null;
}
@Override
public int hashCode() {
int result = getName() != null ? getName().hashCode() : 0;
result = 31 * result + (getPhone() != null ? getPhone().hashCode() : 0);
result = 31 * result + (getMail() != null ? getMail().hashCode() : 0);
result = 31 * result + (getAddress() != null ? getAddress().hashCode() : 0);
return result;
}
@Override
public String toString() {
return "ChargingOperator{" +
"name='" + name + '\'' +
", phone='" + phone + '\'' +
", mail='" + mail + '\'' +
", address='" + address + '\'' +
'}';
}
}