//
//  ProductManager+ListOfProductsPresenterModelProtocol.swift
//  MercadoLibreListing
//
//  Created by Daniel Torres on 6/12/20.
//  Copyright © 2020 dansTeam. All rights reserved.
//

import Foundation

extension ProductHolder: ListOfProductsPresenterModelProtocol where T == MercadoLibreListingProduct {
    func getArrayOfProducts() -> [ProductProtocol] {
        return products
    }
    
    func getArrayOfProducts(with presenter: ListOfProductsPresenterProtocol) {
        presenter.prepareListOfProductsViewData(with: products)
    }
}
 
