de.aipark.api.requestsResponse.getParkingAreasForPositionWithOccupancy.GetParkingAreasForPositionWithOccupancyRequest Maven / Gradle / Ivy
package de.aipark.api.requestsResponse.getParkingAreasForPositionWithOccupancy;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.vividsolutions.jts.geom.Point;
import de.aipark.api.parkingarea.ParkingAreaDataFilter;
import de.aipark.api.requestsResponse.FiltersDeserializer;
import de.aipark.api.requestsResponse.Request;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
/**
* Created by torgen on 27.09.17.
*/
public class GetParkingAreasForPositionWithOccupancyRequest extends Request {
@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", dataType = "List", required = true)
@JsonDeserialize(using = FiltersDeserializer.class)
private List filters = new ArrayList();
@ApiModelProperty(value = "occupancy time", dataType = "java.lang.Long", required = true, example = "1476561575000")
private Timestamp timestamp;
public GetParkingAreasForPositionWithOccupancyRequest() {
}
public GetParkingAreasForPositionWithOccupancyRequest(Point position, Integer numberOfParkingAreas, List filters, Timestamp timestamp) {
this.position = position;
this.numberOfParkingAreas = numberOfParkingAreas;
this.filters = filters;
this.timestamp = timestamp;
}
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;
}
public Timestamp getTimestamp() {
return timestamp;
}
public void setTimestamp(Timestamp timestamp) {
this.timestamp = timestamp;
}
}