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

36 lines
1.3 KiB
Objective-C
Executable File

//
// GDParentOperation.h
// GDFileManagerExample
//
// Created by Graham Dennis on 4/07/13.
// Copyright (c) 2013 Graham Dennis. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GDHTTPClient, AFHTTPRequestOperation;
#import "GDParentOperation.h"
extern NSString * const GDHTTPStatusErrorDomain;
@interface GDHTTPOperation : GDParentOperation
@property (nonatomic, strong, readonly) GDHTTPClient *client;
@property (nonatomic, strong) NSMutableURLRequest *urlRequest;
@property (nonatomic) BOOL requiresAuthentication;
@property (nonatomic) BOOL retryOnStandardErrors;
@property (nonatomic, strong, readonly) void (^success)(AFHTTPRequestOperation *requestOperation, id responseObject);
@property (nonatomic, strong, readonly) void (^failure)(AFHTTPRequestOperation *requestOperation, NSError *error);
@property (nonatomic, strong) BOOL (^shouldRetryAfterError)(NSError *error);
@property (nonatomic, strong) void (^configureOperationBlock)(AFHTTPRequestOperation *requestOperation);
- (id)initWithClient:(GDHTTPClient *)client urlRequest:(NSMutableURLRequest *)urlRequest
success:(void (^)(AFHTTPRequestOperation *requestOperation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *requestOperation, NSError *error))failure;
@end