SMIRoutingResult

Objective-C

@protocol SMIRoutingResult <SMIEntryPayload>

Swift

protocol RoutingResult : EntryPayload

Represents a routing result within an SMIConversationEntry.

  • The routing type.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SMIRoutingTypes _Nonnull routingType;

    Swift

    var routingType: RoutingTypes { get }
  • The routing failure type.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SMIFailureTypes _Nonnull failureType;

    Swift

    var failureType: FailureTypes { get }
  • The reason for the routing failure

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *_Nonnull failureReason;

    Swift

    var failureReason: String { get }
  • The record ID for the routing result.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *_Nonnull recordId;

    Swift

    var recordId: String { get }
  • Estimated wait time in seconds. A negative number means that EWT could not be calculated.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger estimatedWaitTime;

    Swift

    var estimatedWaitTime: Int { get }
  • Determines if there is a valid EWT value available to use for displaying an approximate wait time for an agent to respond. This is true if and only if isEWTRequest is true AND estimatedWaitTime is >= 0

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isEWTAvailable;

    Swift

    var isEWTAvailable: Bool { get }
  • Determines if an estimated wait time calculation was requested for this route request.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isEWTRequested;

    Swift

    var isEWTRequested: Bool { get }