EMEmvDataObject

Objective-C

@protocol EMEmvDataObject

Swift

protocol EMEmvDataObject

Data object class providing the common interface.

  • Provides ID of the data object.

    Declaration

    Objective-C

    - (Byte)identifier;

    Swift

    func identifier() -> UInt8

    Return Value

    Returns ID of the data object as byte.

  • Provides type of the data object.

    Declaration

    Objective-C

    - (EMEmvDataObjectType)type;

    Swift

    func type() -> EMEmvDataObjectType

    Return Value

    Returns type of the data object

  • Provides value of the EMEmvPrimitive data objects.

    Declaration

    Objective-C

    - (NSString *)value;

    Swift

    func value() -> String!

    Return Value

    Returns value of the data object as String if available. Null is provided for EMEmvTemplate data objects for which the getDataObjects method should be used instead.

  • Provides inner structure for EMEmvTemplate data objects.

    Declaration

    Objective-C

    - (NSArray<id<EMEmvDataObject>> *)dataObjects;

    Swift

    func dataObjects() -> [any EMEmvDataObject]!

    Return Value

    Returns a list of inner data objects if any. Empty list is provided for EMEmvPrimitive data objects.