tristanhimmelman/AlamofireObjectMapper

ResponseArray not available in this version?

Closed this issue · 3 comments

Hi!

I should be able to get an array of objects in just 1 line using request.responseArray(). This method does not seem to exist? Any thoughts?

Hey @CedricVanhaverbeke,

Not sure why you are experiencing difficulties as this method still exists:

public func responseArray<T: BaseMappable>(queue: DispatchQueue? = nil, keyPath: String? = nil, context: MapContext? = nil, completionHandler: @escaping (DataResponse<[T]>) -> Void) -> Self

Can you give an example with this method?

Please see the tests included in this project