TaxiBuilder

public class TaxiBuilder
extension TransportSpecification.TaxiBuilder: NativeBase
extension TransportSpecification.TaxiBuilder: Hashable

This class constructs a TransportSpecification for a taxi.

  • Creates a new instance of this class.

    Declaration

    Swift

    public init()
  • Sets the taxi specification.

    Declaration

    Swift

    public func withTaxiSpecification(_ taxiSpecification: TaxiSpecification) -> TransportSpecification.TaxiBuilder

    Parameters

    taxiSpecification

    The taxi specification.

    Return Value

    The TransportSpecification.TaxiBuilder object with the taxi specification set to the new value.

  • Sets the vehicle specification.

    Declaration

    Swift

    public func withVehicleSpecification(_ vehicleSpecification: VehicleSpecification) -> TransportSpecification.TaxiBuilder

    Parameters

    vehicleSpecification

    The vehicle specification.

    Return Value

    The TransportSpecification.TaxiBuilder object with the vehicle specification set to the new value.

  • Builds the TransportSpecification object for a taxi with the specifications taken from the TransportSpecification.TaxiBuilder object.

    Declaration

    Swift

    public func build() -> TransportSpecification

    Return Value

    The TransportSpecification object created from the TransportSpecification.TaxiBuilder object.