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

de.aipark.api.requestsResponse.getOccupancyForPosition.GetOccupancyForPositionRequest Maven / Gradle / Ivy

package de.aipark.api.requestsResponse.getOccupancyForPosition;

import com.vividsolutions.jts.geom.Point;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;

/**
 * Created by torgen on 12.10.17.
 */
public class GetOccupancyForPositionRequest {
    @ApiModelProperty(value = "departurePosition for occupancy", required = true)
    private Point position;

    @ApiModelProperty(value = "timestamp for occupancy (UNIX time (since 1970) in milliseconds)", dataType = "java.lang.Long", required = true, example = "1476561575000")
    private Timestamp timestamp;

    public GetOccupancyForPositionRequest() {
    }

    public GetOccupancyForPositionRequest(Point position, Timestamp timestamp) {
        this.position = position;
        this.timestamp = timestamp;
    }

    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;
    }

    @Override
    public String toString() {
        return "GetOccupancyForPositionRequest{" +
                "position=" + position +
                ", timestamp=" + timestamp +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy