EMDsTransactionData
Objective-C
@protocol EMDsTransactionData <NSObject>
Swift
protocol EMDsTransactionData : NSObjectProtocol
A protocol representing a DS Transaction Data.
-
Returns the template that is associated with this transaction data.
Declaration
Objective-C
@property (nonatomic, strong, readonly) id<EMTemplate> template;Swift
var template: (any EMTemplate)! { get }Return Value
The template that this transaction data is associated with.
-
Returns the list of primitive values added in the transaction data.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray *entries;Swift
var entries: [Any]! { get }Return Value
The list of added primitive values in this transaction data; if none, returns an empty list.
-
Adds the given primitive value holder to the transaction data.
Declaration
Objective-C
- (id<EMDsTransactionData>)addPrimitiveValue:(EMPrimitiveValue *)primitiveValue;Swift
func add(_ primitiveValue: EMPrimitiveValue!) -> (any EMDsTransactionData)!Parameters
primitiveValueThe primitive value holder.
Return Value
This transaction data (for method chaining).
-
Adds a input primitive to the transaction data.
Declaration
Objective-C
- (id<EMDsTransactionData>)addInputPrimitive: (id<EMInputPrimitive>)inputPrimitive value:(id<EMSecureString>)value;Swift
func add(_ inputPrimitive: (any EMInputPrimitive)!, value: (any EMSecureString)!) -> (any EMDsTransactionData)!Parameters
inputPrimitiveThe input primitive.
valueThe value for the primitive.
Return Value
This transaction data (for method chaining).
-
Adds a text primitive to the transaction data.
Since
2.1Declaration
Objective-C
- (id<EMDsTransactionData>)addTextPrimitive:(id<EMTextPrimitive>)textPrimitive value:(id<EMSecureString>)value;Swift
func add(_ textPrimitive: (any EMTextPrimitive)!, value: (any EMSecureString)!) -> (any EMDsTransactionData)!Parameters
textPrimitiveThe text primitive.
valueThe value for the primitive.
Return Value
This transaction data (for method chaining).
-
Adds a message primitive to the transaction data.
Declaration
Objective-C
- (id<EMDsTransactionData>)addMessagePrimitive: (id<EMMessageDialogPrimitive>)messagePrimitive;Swift
func addMessagePrimitive(_ messagePrimitive: (any EMMessageDialogPrimitive)!) -> (any EMDsTransactionData)!Parameters
messagePrimitiveThe message primitive.
Return Value
This transaction data (for method chaining).
EMDsTransactionData Protocol Reference