de.aipark.api.requestsResponse.getOccupancyForParkingAreas.RequestEntry Maven / Gradle / Ivy
package de.aipark.api.requestsResponse.getOccupancyForParkingAreas;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Timestamp;
/**
* Created by torgen on 25.09.17.
*/
public class RequestEntry {
@ApiModelProperty(value = "timestamp for occupancy (UNIX time (since 1970) in milliseconds)", dataType = "java.lang.Long", required = true, example = "1476561575000")
private Timestamp timestamp;
@ApiModelProperty(value = "id of parking area", dataType = "java.lang.Long", required = true, example = "3376765")
private Long parkingAreaId;
public RequestEntry() {
}
public RequestEntry(Timestamp timestamp, Long parkingAreaId) {
this.timestamp = timestamp;
this.parkingAreaId = parkingAreaId;
}
public Timestamp getTimestamp() {
return timestamp;
}
public void setTimestamp(Timestamp timestamp) {
this.timestamp = timestamp;
}
public Long getParkingAreaId() {
return parkingAreaId;
}
public void setParkingAreaId(Long parkingAreaId) {
this.parkingAreaId = parkingAreaId;
}
@Override
public String toString() {
return "RequestEntry{" +
"timestamp=" + timestamp +
", parkingAreaId=" + parkingAreaId +
'}';
}
}