Track

data class Track(val id: Int, val name: String, val description: String?, val createdAt: Long, val waypoints: List<Waypoint>?)

Domain model representing a track (a collection of waypoints forming a path).

Constructors

Link copied to clipboard
constructor(id: Int, name: String, description: String?, createdAt: Long, waypoints: List<Waypoint>?)

Properties

Link copied to clipboard

Timestamp (in millis) when the track was created.

Link copied to clipboard

Optional description providing more details about the track.

Link copied to clipboard
val id: Int

Unique identifier for the track (matches DB primary key).

Link copied to clipboard

Human-readable name of the track.

Link copied to clipboard

List of waypoints that belong to this track.

Functions

Link copied to clipboard

Converts a domain Track object into a database TrackEntity.