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

de.aipark.api.datasource.License Maven / Gradle / Ivy

Go to download

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]

There is a newer version: 30.06
Show newest version
package de.aipark.api.datasource;

import io.swagger.annotations.ApiModelProperty;

public class License {

    @ApiModelProperty(value = "license type description", example = "Creative Commons")
    private String licenseType;

    @ApiModelProperty(value = "if this datasource needs to be published (due to license conditions)")
    private boolean mustPublish;

    public License(String licenseType, boolean mustPublish) {
        this.licenseType = licenseType;
        this.mustPublish = mustPublish;
    }

    public String getLicenseType() {
        return licenseType;
    }

    public void setLicenseType(String licenseType) {
        this.licenseType = licenseType;
    }

    public boolean isMustPublish() {
        return mustPublish;
    }

    public void setMustPublish(boolean mustPublish) {
        this.mustPublish = mustPublish;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof License)) return false;

        License license = (License) o;

        if (mustPublish != license.mustPublish) return false;
        return licenseType != null ? licenseType.equals(license.licenseType) : license.licenseType == null;
    }

    @Override
    public int hashCode() {
        int result = licenseType != null ? licenseType.hashCode() : 0;
        result = 31 * result + (mustPublish ? 1 : 0);
        return result;
    }

    @Override
    public String toString() {
        return "License{" +
                "licenseType='" + licenseType + '\'' +
                ", mustPublish=" + mustPublish +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy