1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/thirdparty/GDFileManager/GDRemoteFileServiceSession.h
2015-10-01 19:19:52 +03:00

30 lines
942 B
Objective-C
Executable File

//
// GDRemoteFileServiceSession.h
// GDFileManagerExample
//
// Created by Graham Dennis on 27/01/13.
// Copyright (c) 2013 Graham Dennis. All rights reserved.
//
#import "GDFileServiceSession.h"
@class GDHTTPClient;
@class GDRemoteFileService;
@class AFHTTPRequestOperation;
@interface GDRemoteFileServiceSession : GDFileServiceSession
- (id)initWithFileService:(GDFileService *)fileService client:(GDHTTPClient *)client;
@property (nonatomic, strong) GDHTTPClient *client;
// Subclasses to provide
+ (NSURL *)baseURLForFileService:(GDFileService *)fileService client:(GDHTTPClient *)client;
- (NSOperation *)downloadURL:(NSURL *)url intoFileURL:(NSURL *)localURL
progress:(void (^)(NSInteger bytesRead, NSInteger totalBytesRead, NSInteger totalBytesExpectedToRead))progress
success:(void (^)(NSURL *localURL))success
failure:(void (^)(NSError *error))failure;
@end