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

odata.test.trip.pin.entity.request.FlightRequest Maven / Gradle / Ivy

There is a newer version: 0.1.13
Show newest version
package odata.test.trip.pin.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import odata.test.trip.pin.entity.Flight;
import odata.test.trip.pin.entity.request.AirlineRequest;
import odata.test.trip.pin.entity.request.AirportRequest;
import odata.test.trip.pin.schema.SchemaInfo;

@JsonIgnoreType
public final class FlightRequest extends EntityRequest {

    public FlightRequest(ContextPath contextPath) {
        super(Flight.class, contextPath, SchemaInfo.INSTANCE);
    }

    public AirportRequest from() {
        return new AirportRequest(contextPath.addSegment("From"));
    }

    public AirportRequest to() {
        return new AirportRequest(contextPath.addSegment("To"));
    }

    public AirlineRequest airline() {
        return new AirlineRequest(contextPath.addSegment("Airline"));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy