Identity iOS
1.12
Search
K
Comment on page

PhilippinesSeafarerIdentificationRecordBookModel

A class derived from DocumentModel containing details specific to the Philippines seafarer identification record book document

Declaration

@objc final public class PhilippinesSeafarerIdentificationRecordBookModel : DocumentModel {
@objc final public var fullName: String? { get }
@objc final public var dateOfBirth: Date? { get }
@objc final public var placeOfBirth: String? { get }
@objc final public var height: Float { get }
@objc final public var weight: Float { get }
@objc final public var eyeColor: String? { get }
@objc final public var hairColor: String? { get }
@objc final public var distinguishingMarks: String? { get }
@objc final public var sex: Sex { get }
@objc final public var dateOfIssue: Date? { get }
@objc final public var placeOfIssue: String? { get }
@objc final public var validUntil: Date? { get }
override final public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Public variables

Name
Type
Description
Data source
fullName
String?
The full name of the subject as found on the document.
OCR
Date?
The date of birth of the subject as found on the document.
OCR
String?
The place of birth of the subject as found on the document.
OCR
height
Float
The height of the subject as found on the document.
OCR
weight
Float
The weight of the subject as found on the document.
OCR
eyeColor
String?
The eye color of the subject as found on the document.
OCR
hairColor
String?
The hair color of the subject as found on the document.
OCR
String?
Distinguishing marks of the subject as found on the document.
OCR
sex
Sex
The sex of the subject as found on the document.
OCR
Date?
The date of issue of the document as found on the document.
OCR
String?
The place of issue of the document as found on the document.
OCR
Date?
The expiry date of the document as found on the document.
OCR

Public methods

Signature
Return Type
Description
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.

Public variables

fullName

@objc final public var fullName: String? { get }
Example: "JOHN DOE"
The full name of the subject as found on the document.

dateOfBirth

@objc final public var dateOfBirth: Date? { get }
Example: 1990/01/01
The date of birth of the subject as found on the document.

placeOfBirth

@objc final public var placeOfBirth: String? { get }
Example: "QUEZON CITY"
The place of birth of the subject as found on the document.

height

@objc final public var height: Float { get }
Height is in centimeters
Example: 162.56
The height of the subject as found on the document.

weight

@objc final public var weight: Float { get }
Weight is in kilograms
Example: 50
The weight of the subject as found on the document.

eyeColor

@objc final public var eyeColor: String? { get }
Example: "BLACK"
The eye color of the subject as found on the document.

hairColor

@objc final public var hairColor: String? { get }
Example: "BLACK"
The hair color of the subject as found on the document.

distinguishingMarks

@objc final public var distinguishingMarks: String? { get }
Example: "NONE"
Distinguishing marks of the subject as found on the document.

sex

@objc final public var sex: Sex { get }
Example: Sex.Male
The sex of the subject as found on the document.

dateOfIssue

@objc final public var dateOfIssue: Date? { get }
Example: 1990/01/01
The date of issue of the document as found on the document.

placeOfIssue

@objc final public var placeOfIssue: String? { get }
Example: "QUEZON CITY"
The place of issue of the document as found on the document.

validUntil

@objc final public var validUntil: Date? { get }
Example: 1990/01/01
The expiry date of the document as found on the document.

Public methods

encode(to encoder: Encoder)

override final public func encode(to encoder: Encoder) throws
This function also calls its super function
Encodes the model using the encoder provided. Used to convert the model to JSON.

See also