Port

data class Port(val id: Int = INT_INVALID, val name: String = EMPTY_STR, val description: String = EMPTY_STR, val identification: String = EMPTY_STR, val country: String = EMPTY_STR, val department: String = EMPTY_STR, val city: String = EMPTY_STR, val address: String = EMPTY_STR, val latitude: Double = DOUBLE_INVALID, val longitude: Double = DOUBLE_INVALID, val dockIds: List<Int> = emptyList(), val entranceRadiusMeters: Int = INT_INVALID, val departureRadiusMeters: Int = INT_INVALID, val status: PlaceStatusType = PlaceStatusType.UNKNOWN, val companyId: Int = INT_INVALID, val addedOnDate: String = EMPTY_STR, val updateOnDate: String = EMPTY_STR)

Port is the data model for a port.

Constructors

Link copied to clipboard
constructor(id: Int = INT_INVALID, name: String = EMPTY_STR, description: String = EMPTY_STR, identification: String = EMPTY_STR, country: String = EMPTY_STR, department: String = EMPTY_STR, city: String = EMPTY_STR, address: String = EMPTY_STR, latitude: Double = DOUBLE_INVALID, longitude: Double = DOUBLE_INVALID, dockIds: List<Int> = emptyList(), entranceRadiusMeters: Int = INT_INVALID, departureRadiusMeters: Int = INT_INVALID, status: PlaceStatusType = PlaceStatusType.UNKNOWN, companyId: Int = INT_INVALID, addedOnDate: String = EMPTY_STR, updateOnDate: String = EMPTY_STR)

Properties

Link copied to clipboard

String is the date and time when the port was added.

Link copied to clipboard

String is the address of the port.

Link copied to clipboard

String is the city of the port.

Link copied to clipboard

Int is the company id of the port.

Link copied to clipboard

String is the country of the port.

Link copied to clipboard

String is the department of the port.

Link copied to clipboard

Int The departure radius meters. Check if is outside to determine if is out of the port.

Link copied to clipboard

String is the description of the port.

Link copied to clipboard

List<Int> is the list of dock ids.

Link copied to clipboard

Int The entrance radius meters. Check if is inside to determine if is in the port.

Link copied to clipboard
val id: Int

Int is the unique identifier.

Link copied to clipboard

String is the identification of the port.

Link copied to clipboard

Double is the latitude of the port.

Link copied to clipboard

Double is the longitude of the port.

Link copied to clipboard

String is the name of the port.

Link copied to clipboard

PlaceStatusType is the status of the port.

Link copied to clipboard

String is the date and time when the port was updated.