All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.aipark.api.chargingstation.ChargingAuthentication Maven / Gradle / Ivy

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
    }

    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 + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy