TTBatchResponse

@interface TTBatchResponse : NSObject

Visitable collection of batch search responses.

  • Method allows to visit results returned from batch search depends of their type.

    Declaration

    Objective-C

    - (void)visit:(id<TTBatchVisistor> _Nonnull)visitor;

    Swift

    func visit(_ visitor: TTBatchVisistor)

    Parameters

    visitor

    id

  • Total number of requests sent to server

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly)
        NSUInteger totalRequests;

    Swift

    var totalRequests: UInt { get }
  • Number of successful requestes returned from server.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly)
        NSUInteger totalSuccessfulRequests;

    Swift

    var totalSuccessfulRequests: UInt { get }
  • Response HTTP headers.

    Declaration

    Objective-C

    - (id)HTTPHeaders;

    Swift

    func httpHeaders() -> Any!