All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
de.aipark.api.livedata.spot.LiveSpot Maven / Gradle / Ivy
package de.aipark.api.livedata.spot;
import com.vividsolutions.jts.geom.Point;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Timestamp;
/**
* Created by torgen on 12.03.18.
*/
public class LiveSpot {
@ApiModelProperty(value = "parking area id", dataType = "java.lang.Long", required = true, example = "3376765")
private Long parkingAreaId;
@ApiModelProperty(value = "status of live spot, O for occupied, F for free, U for unknown", required = true, example = "O")
private LiveSpotStatus occupied;
@ApiModelProperty(value = "center point of parking spot", required = true)
private Point position;
@ApiModelProperty(value = "timestamp of live spot", dataType = "java.lang.Long", required = true, example = "1530224622127")
private Timestamp timestamp;
@ApiModelProperty(value = "timestamp since when the LiveSpotStatus is set to current value", dataType = "java.lang.Long", required = true, example = "1530224622127")
private Timestamp sinceTimestamp;
@ApiModelProperty(value = "spot type, e.g. NORMAL,RESIDENTIAL,DISABLED,CHARGING,WOMAN,FIRE_RESCUE_PATH,NO_STANDING,NO_PARKING", required = true, example = "NORMAL")
private ParkingSpotType type;
@ApiModelProperty(value = "spot id", dataType = "java.lang.Long", required = true, example = "138")
private Long spotId;
public LiveSpot() {
}
public LiveSpot(Long parkingAreaId, LiveSpotStatus occupied, Point position, Timestamp timestamp, Timestamp sinceTimestamp, ParkingSpotType type, Long spotId) {
this.parkingAreaId = parkingAreaId;
this.occupied = occupied;
this.position = position;
this.timestamp = timestamp;
this.sinceTimestamp = sinceTimestamp;
this.type = type;
this.spotId = spotId;
}
public Long getParkingAreaId() {
return parkingAreaId;
}
public void setParkingAreaId(Long parkingAreaId) {
this.parkingAreaId = parkingAreaId;
}
public LiveSpotStatus getOccupied() {
return occupied;
}
public void setOccupied(LiveSpotStatus occupied) {
this.occupied = occupied;
}
public Point getPosition() {
return position;
}
public void setPosition(Point position) {
this.position = position;
}
public Timestamp getTimestamp() {
return timestamp;
}
public void setTimestamp(Timestamp timestamp) {
this.timestamp = timestamp;
}
public ParkingSpotType getType() {
return type;
}
public void setType(ParkingSpotType type) {
this.type = type;
}
public Timestamp getSinceTimestamp() {
return sinceTimestamp;
}
public void setSinceTimestamp(Timestamp sinceTimestamp) {
this.sinceTimestamp = sinceTimestamp;
}
public Long getSpotId() {
return spotId;
}
public void setSpotId(Long spotId) {
this.spotId = spotId;
}
@Override
public String toString() {
return "LiveSpot{" +
"parkingAreaId=" + parkingAreaId +
", occupied=" + occupied +
", position=" + position +
", timestamp=" + timestamp +
", sinceTimestamp=" + sinceTimestamp +
", type=" + type +
", spotId=" + spotId +
'}';
}
}