commonMain.at.asitplus.wallet.cor.IsoSexEnum.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of certificateofresidence-jvm Show documentation
Show all versions of certificateofresidence-jvm Show documentation
Use data representing Certificates of Residence as a SD JWT Credential
The newest version!
package at.asitplus.wallet.cor
/**
* ISO/IEC 5218 Codes for the representation of human sexes
*/
enum class IsoSexEnum(val code: Int) {
NOT_KNOWN(0),
MALE(1),
FEMALE(2),
NOT_APPLICABLE(9);
companion object {
fun parseCode(code: Int) = values().firstOrNull { it.code == code }
}
}