Shipment

data class Shipment(val portId: Int, val empty: Boolean, val pickups: List<ShipmentItem>, val deliveries: List<ShipmentItem>)

Shipment is a data class that contains information about a shipment.

Constructors

Link copied to clipboard
constructor(portId: Int, empty: Boolean, pickups: List<ShipmentItem>, deliveries: List<ShipmentItem>)

Properties

Link copied to clipboard

List<ShipmentItem> The delivery points of the shipment.

Link copied to clipboard

Boolean Indicates whether the shipment is empty or not.

Link copied to clipboard

List<ShipmentItem> The pickup points of the shipment.

Link copied to clipboard
val portId: Int

Int The ID of the port where the shipment is located.