CardGeneration

public enum CardGeneration

Represent the card generation of health card

| Version | Version with 2 digits | INT Value for Version | Card generation | < 3.0.3 | 03.00.03 | 30003 | G1 | < 4.0.0 | 04.00.00 | 40000 | G1P | >= 4.0.0 | 04.00.00 | 40000 | G2 | >= 4.4.0 | 04.04.00 | 40400 | G2_1

  • g1

    Generation G1 (< 3.0.3)

    Declaration

    Swift

    case g1
  • g1P

    Generation G1P (3.0.3 - < 4.0.0)

    Declaration

    Swift

    case g1P
  • g2

    Generation G2 (4.0.0 - < 4.4.0)

    Declaration

    Swift

    case g2
  • Generation G2.1 (4.4.0+)

    Declaration

    Swift

    case g2_1
  • Return the CardGeneration for ObjectSystemVersion

    Declaration

    Swift

    public static func parseCardGeneration(version: Int) -> CardGeneration?

    Parameters

    version

    value like 30003, 40000 (for details see class description)

    Return Value

    Generation Value or nil when version is unrecognized

  • Parse the CardGeneration from the objectSystemVersion from the CardVersion2

    Declaration

    Swift

    public static func parseCardGeneration(data: Data) -> CardGeneration?