SKYResultArrayResponse

@interface SKYResultArrayResponse : SKYResponse

implements a common processing pattern for processing response dictionary.

The response dictionary is expected to contain an array specified with the key result. Each item in the array is a dictionary for individual item. The dictionary must have the _id key which value will be used as the result key.

  • Returns number of results.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger count;

    Swift

    var count: UInt { get }
  • Enumerate result dictionary in result array.

    Declaration

    Objective-C

    - (void)enumerateResultsUsingBlock:
        (void (^_Nullable)(NSString *_Nullable, NSDictionary *_Nullable,
                           NSError *_Nullable, NSUInteger, BOOL *_Nonnull))block;

    Swift

    func enumerateResults(block: ((String?, [AnyHashable : Any]?, Error?, UInt, UnsafeMutablePointer<ObjCBool>) -> Void)? = nil)