//
//  DONSMediaDownloadClient.h
//  DOCore
//
//  Created by Ben Dolman on 10/21/14.
//
//
#import "DONSMediaClient.h"

/**
 * A concrete implementation of DONSMediaClient that downloads media objects.
 */
@interface DONSMediaDownloadClient : DONSMediaClient

- (void)downloadMediaFileWithHash:(NSString *)hash;

@end

@interface DONSMediaDownloadClientResponse : DONSMediaClientResponse

@property (copy, readonly) NSURL *downloadedFileURL;

- (instancetype)initWithHTTPResponse:(NSHTTPURLResponse *)HTTPResponse
                               error:(NSError *)error
                   downloadedFileURL:(NSURL *)fileURL;

@end