//
//  Networking.swift
//  SwinjectMVVMExample
//
//  Created by Yoichi Tagaya on 8/22/15.
//  Copyright © 2015 Swinject Contributors. All rights reserved.
//

import ReactiveCocoa

public protocol Networking {
    /// Gets a `SignalProducer` emitting a JSON root element ( an array or dictionary).
    func requestJSON(url: String, parameters: [String : AnyObject]?) -> SignalProducer<AnyObject, NetworkError>
    
    /// Gets a `SignalProducer` emitting an `UIImage`.
    func requestImage(url: String) -> SignalProducer<UIImage, NetworkError>
}

//
//  Networking.swift
//  SwinjectMVVMExample
//
//  Created by Yoichi Tagaya on 8/22/15.
//  Copyright © 2015 Swinject Contributors. All rights reserved.
//

import ReactiveCocoa

public protocol Networking {
    /// Returns a `SignalProducer` emitting a JSON root element ( an array or dictionary).
    func requestJSON(url: String, parameters: [String : AnyObject]?) -> SignalProducer<AnyObject, NetworkError>
    
    /// Returns a `SignalProducer` emitting an `UIImage`.
    func requestImage(url: String) -> SignalProducer<UIImage, NetworkError>
}

Edit comments to make them clearer.
Edit comments to make them clearer.
