de.aipark.api.requestsResponse.getParkingAreasForPosition.GetParkingAreasForPositionRequest Maven / Gradle / Ivy
package de.aipark.api.requestsResponse.getParkingAreasForPosition;
import com.vividsolutions.jts.geom.Point;
import de.aipark.api.parkingarea.ParkingAreaDataFilter;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Created by torgen on 27.09.17.
*/
public class GetParkingAreasForPositionRequest {
@ApiModelProperty(value = "departurePosition of parking areas", required = true)
private Point position;
@ApiModelProperty(value = "number of parking areas", dataType = "java.lang.Integer", required = true, example = "10")
private Integer numberOfParkingAreas;
@ApiModelProperty(value = "list of filters, filter CAR_PARK combines filters for types: \"CAR_PARK, AIRPORT,PARKING_DECK_AUTOMATED, UNDERGROUND_PARKING, UNDERGROUND_PARKING_AUTOMATED \"",
dataType = "[Ljava.lang.String;", example = "[\"FREE\"]", required = true,
allowableValues = ParkingAreaDataFilter.ALLOWED_VALUES_LIST)
private List filters;
public GetParkingAreasForPositionRequest() {
filters = new ArrayList();
}
public GetParkingAreasForPositionRequest(Point position, Integer numberOfParkingAreas, List filters) {
this.position = position;
this.numberOfParkingAreas = numberOfParkingAreas;
this.filters = filters;
}
public Point getPosition() {
return position;
}
public void setPosition(Point position) {
this.position = position;
}
public Integer getNumberOfParkingAreas() {
return numberOfParkingAreas;
}
public void setNumberOfParkingAreas(Integer numberOfParkingAreas) {
this.numberOfParkingAreas = numberOfParkingAreas;
}
public List getFilters() {
return filters;
}
public void setFilters(List filters) {
this.filters = filters;
}
@Override
public String toString() {
return "GetParkingAreasForPositionRequest{" +
"position=" + position +
", numberOfParkingAreas=" + numberOfParkingAreas +
", filters=" + filters +
'}';
}
}