Class DriverLicenseDetailedInfo
- java.lang.Object
-
- com.microblink.entities.recognizers.blinkid.generic.DriverLicenseDetailedInfo
-
- All Implemented Interfaces:
android.os.Parcelable
public final class DriverLicenseDetailedInfo extends java.lang.Object implements android.os.Parcelable
Driver's license specific data.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<DriverLicenseDetailedInfo>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
DriverLicenseDetailedInfo(android.os.Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriverLicenseDetailedInfo
createFromNative(java.lang.String restrictions, java.lang.String endorsements, java.lang.String vehicleClass, java.lang.String conditions, VehicleClassInfo[] vehicleClassesInfo)
This method is called from native code to buildDriverLicenseDetailedInfo
from native object.int
describeContents()
java.lang.String
getConditions()
The driver license conditions.java.lang.String
getEndorsements()
The additional privileges granted to the driver license owner.java.lang.String
getRestrictions()
The restrictions to driving privileges for the driver license owner.java.lang.String
getVehicleClass()
The type of vehicle the driver license owner has privilege to drive.VehicleClassInfo[]
getVehicleClassesInfo()
The additional information on vehicle class.boolean
isEmpty()
Checks whether data is empty.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<DriverLicenseDetailedInfo> CREATOR
-
-
Method Detail
-
getRestrictions
@NonNull public java.lang.String getRestrictions()
The restrictions to driving privileges for the driver license owner.
-
getEndorsements
@NonNull public java.lang.String getEndorsements()
The additional privileges granted to the driver license owner.
-
getVehicleClass
@NonNull public java.lang.String getVehicleClass()
The type of vehicle the driver license owner has privilege to drive.
-
getVehicleClassesInfo
@NonNull public VehicleClassInfo[] getVehicleClassesInfo()
The additional information on vehicle class.
-
getConditions
@NonNull public java.lang.String getConditions()
The driver license conditions.
-
isEmpty
public boolean isEmpty()
Checks whether data is empty. Data is empty if all fields are empty.- Returns:
true
if data is empty, false otherwise.
-
createFromNative
@NonNull public static DriverLicenseDetailedInfo createFromNative(@NonNull java.lang.String restrictions, @NonNull java.lang.String endorsements, @NonNull java.lang.String vehicleClass, @NonNull java.lang.String conditions, @NonNull VehicleClassInfo[] vehicleClassesInfo)
This method is called from native code to buildDriverLicenseDetailedInfo
from native object.
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-