TNVehicleInfo
@objcMembers
public class TNVehicleInfo : NSObject, Codable
Undocumented
-
Odometer reading at the start of the first trip (in kilometers)
Declaration
Swift
public let startOdometer: Double
-
Undocumented
Declaration
Swift
public let startOdometerTime: TimeInterval
-
Odometer reading at the end of the last trip (in kilometers)
Declaration
Swift
public let endOdometer: Double
-
Undocumented
Declaration
Swift
public let endOdometerTime: TimeInterval
-
A model representing the total odometer readings of a car during a trip over a certain period of time. The
TNVehicleInfo
class captures the odometer readings at both the start and end of the trip, giving an overview of the total distance traveled within that time frame. This class is designed to be extendable in the future with additional parameters related to the trip data.- startOdometer: The odometer reading at the start of the trip (in kilometers).
endOdometer: The odometer reading at the end of the trip (in kilometers).
Declaration
Swift
public init(startOdometer: Double, startOdometerTime: TimeInterval, endOdometer: Double, endOdometerTime: TimeInterval)
Return Value
An initialized
TNVehicleInfo
object.