EMOobIncomingMessage
Objective-C
@protocol EMOobIncomingMessage <EMOobMessage>
Swift
protocol EMOobIncomingMessage : EMOobMessage
Interface of an incoming message from the OOB server.
Since
3.0-
Gets the underlying incoming message type.
Since
3.0
Declaration
Objective-C
@required @property (nonatomic, copy, readwrite) NSString *messageType;Swift
var messageType: String! { get set }Return Value
The incoming message type.
-
The server acknowledgment state of the message.
Since
3.0
Declaration
Objective-C
@required @property (nonatomic, assign, unsafe_unretained, readonly) BOOL isAcknowledgmentRequested;Swift
var isAcknowledgmentRequested: Bool { get }Return Value
YESif the server has requested an acknowledgment,NOotherwise. -
Gets the message expiration date.
Since
3.0
Declaration
Objective-C
@required @property (nonatomic, assign, unsafe_unretained, readonly) NSTimeInterval expirationDate;Swift
var expirationDate: TimeInterval { get }Return Value
The expiration date in NSTimeInterval.
-
Creates an outgoing error response for the current message.
Since
3.0
Declaration
Objective-C
- (id<EMOobErrorMessage>)createOobError:(int)anErrorCode errorDescription:(NSString *)anErrorDescription exception:(NSException *)anException externalRef:(NSString *)anExternalRef meta:(NSDictionary *)aMeta;Swift
func createOobError(_ anErrorCode: Int32, errorDescription anErrorDescription: String!, exception anException: NSException!, externalRef anExternalRef: String!, meta aMeta: [AnyHashable : Any]!) -> (any EMOobErrorMessage)!Parameters
anErrorCodeError code.
anErrorDescriptionError description.
anExceptionException object. Can be
nil.anExternalRefAny external reference. Can be
nil.aMetaMeta data for the message. Can be
nil.Return Value
The error message ready to be sent.
-
Creates an outgoing error response for the current message.
Since
3.0
Declaration
Objective-C
- (id<EMOobErrorMessage>)createOobError:(int)anErrorCode errorDescription:(NSString *)anErrorDescription errorStackTrace:(NSString *)anErrorStackTrace externalRef:(NSString *)anExternalRef meta:(NSDictionary *)aMeta;Swift
func createOobError(_ anErrorCode: Int32, errorDescription anErrorDescription: String!, errorStackTrace anErrorStackTrace: String!, externalRef anExternalRef: String!, meta aMeta: [AnyHashable : Any]!) -> (any EMOobErrorMessage)!Parameters
anErrorCodeError code.
anErrorDescriptionError description.
anErrorStackTraceError stack trace. Can be
nil.anExternalRefAny external reference. Can be
nil.aMetaMeta data for the message. Can be
nil.Return Value
The error message ready to be sent.
EMOobIncomingMessage Protocol Reference