//
//  MarketRepository.swift
//  CryptoMarket
//
//  Created by Thomas on 02/10/2021.
//  Copyright © 2021 Thomas Martins. All rights reserved.
//

import Foundation
import CoreData
import RxCocoa
import RxSwift
import ObjectMapper

internal final class MarketRepository: MarketRepositoryProtocol {
    
    internal func fetchMarketFromRemote() -> Observable<[Market]> {
        return Network.sharedInstance.performGetOnMarket(stringUrl: ApiRoute.ROUTE_SERVER_MARKET
                                                            .concat(string: ApiRoute.ROUTE_MARKET))
    }
    
    internal func fetchMarketFromCore() -> Observable<[Market]> {
        return Observable.just([])
    }
    
    internal func cleanCoreThenFetchMarketFromRemote() -> Observable<[Market]> {
        return Observable.just([])
    }
    
    
}
