EnrollmentStatus
@objcMembers
public class EnrollmentStatus : NSObject, Codable
A class representing the enrollment status of a vehicle.
This class encapsulates the status of a vehicle’s enrollment, including the VIN (Vehicle Identification Number), the enrollment status (a boolean), and an optional reason for the status.
-
The Vehicle Identification Number (VIN) associated with the enrollment status.
Declaration
Swift
public let vin: String -
The enrollment status of the vehicle.
trueindicates enrolled,falseindicates not enrolled.Declaration
Swift
public let status: Bool -
Undocumented
Declaration
Swift
public let enrollmentTime: Date? -
The reason for the enrollment status. This is optional and defaults to
.unknownif not specified.Declaration
Swift
public let reason: EnrollmentReason? -
Initializes a new
EnrollmentStatusinstance.Declaration
Swift
public init(vin: String, status: Bool, enrollmentTime: Date?, reason: EnrollmentReason? = .unknown)Parameters
vinThe VIN of the vehicle.
statusA boolean indicating the enrollment status.
reasonAn optional reason for the enrollment status. Defaults to
.unknown.