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.

  • vin

    The Vehicle Identification Number (VIN) associated with the enrollment status.

    Declaration

    Swift

    public let vin: String
  • The enrollment status of the vehicle. true indicates enrolled, false indicates 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 .unknown if not specified.

    Declaration

    Swift

    public let reason: EnrollmentReason?
  • Initializes a new EnrollmentStatus instance.

    Declaration

    Swift

    public init(vin: String, status: Bool, enrollmentTime: Date?, reason: EnrollmentReason? = .unknown)

    Parameters

    vin

    The VIN of the vehicle.

    status

    A boolean indicating the enrollment status.

    reason

    An optional reason for the enrollment status. Defaults to .unknown.