de.aipark.api.chargingstation.ChargingAuthentication 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;
import io.swagger.annotations.ApiModelProperty;
/**
* Created by torgen on 05.02.18.
*/
public class ChargingAuthentication {
@ApiModelProperty(value = "authentication type", dataType = "de.aipark.api.chargingstation.Type", required = true, example = "RWE_DIRECT")
private String name;
@ApiModelProperty(value = "description", dataType = "java.lang.String", required = true, example = "Pay with your RWE contract.")
private String description;
public enum Type {
UNKNOWN, NONE, NOTE, PARK_AND_CHARGE, RIPARTI, RFID_GRID, DSN, CONTROL_BOX_KEY,
RWE_CONTRACT, RWE_DIRECT, RFID_LOCALE, EVPASS, E_ON, RFID_ELECTRO_DRIVE,
ENBW, EWE, HAMBURG_ENERGIE, MEREGIO, SW_LEIBZIG, SWB, VATTENFALL, WIEN_ENERGIE,
ICH_TANKE_STROM, LADEFOXX, SMS, COIN, EC_MAESTRO_CARD, CREDIT_CARD, LSW,
VIRTA, MOVE, VKW, SWU, FRANKEN_PLUS, SWM, STROM_TICKET, EWALD, CHARGE_NOW,
TANK_E_SMS, EON_DK, SWD, TNM, PRE, CEZ, FASTNED, SMARTRICS, TESLA, INTERCHARGE,
EAM, CLEVER, CHARGE_AND_FUEL, IC_DIRCT, ELLA, PLUG_SURFING, CROME, FORTUM,
RFID, PHONE_CALL, DUE_ENGERIE, LEBENSLAND, APP_INCHARGE, SODETREL, LADEPAY,
APP_TNM, KIWHI, EASY_GO, EASY4YOU, FRESHMILE, ETAXI, WIEN_MOBIL, EVN, PLUG_N_ROLL,
PODPOINT, POLAR, UBITRICITY, ENTEGA, ELEN, NFC, APP, PLEDGE, DEBIT_CARD, MEMBERSHIP_CARD,
ELECTRODRIVE, SHORT_MESSAGE, MONEY_CARD, MOBILE_PHONE;
static final String ALL_TYPES_STRING_LIST = //used for Swagger ApiDoc generation
"UNKNOWN,NONE,NOTE,PARK_AND_CHARGE,RIPARTI,RFID_GRID,DSN,CONTROL_BOX_KEY," +
"RWE_CONTRACT,RWE_DIRECT,RFID_LOCALE,EVPASS,E_ON,RFID_ELECTRO_DRIVE," +
"ENBW,EWE,HAMBURG_ENERGIE,MEREGIO,SW_LEIBZIG,SWB,VATTENFALL,WIEN_ENERGIE," +
"ICH_TANKE_STROM,LADEFOXX,SMS,COIN,EC_MAESTRO_CARD,CREDIT_CARD,LSW," +
"VIRTA,MOVE,VKW,SWU,FRANKEN_PLUS,SWM,STROM_TICKET,EWALD,CHARGE_NOW," +
"TANK_E_SMS,EON_DK,SWD,TNM,PRE,CEZ,FASTNED,SMARTRICS,TESLA,INTERCHARGE," +
"EAM,CLEVER,CHARGE_AND_FUEL,IC_DIRCT,ELLA,PLUG_SURFING,CROME,FORTUM," +
"RFID,PHONE_CALL,DUE_ENGERIE,LEBENSLAND,APP_INCHARGE,SODETREL,LADEPAY," +
"APP_TNM,KIWHI,EASY_GO,EASY4YOU,FRESHMILE,ETAXI,WIEN_MOBIL,EVN,PLUG_N_ROLL," +
"PODPOINT, POLAR, UBITRICITY, ENTEGA, ELEN, NFC, APP, PLEDGE, DEBIT_CARD, MEMBERSHIP_CARD," +
"ELECTRODRIVE, SHORT_MESSAGE, MONEY_CARD, MOBILE_PHONE";
}
public ChargingAuthentication() {
}
public ChargingAuthentication(String name, String description) {
this.name = name;
this.description = description;
}
public ChargingAuthentication(Type name, String description) {
this.name = name.toString();
this.description = description;
}
public void setName(Type type) {
this.name = type.toString();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ChargingAuthentication)) return false;
ChargingAuthentication that = (ChargingAuthentication) o;
if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false;
return getDescription() != null ? getDescription().equals(that.getDescription()) : that.getDescription() == null;
}
@Override
public int hashCode() {
int result = getName() != null ? getName().hashCode() : 0;
result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
return result;
}
@Override
public String toString() {
return "ChargingAuthentication{" +
"name='" + name + '\'' +
", description='" + description + '\'' +
'}';
}
}