PINDataTaskOperation.h 644 B

12345678910111213141516171819202122
  1. //
  2. // PINDataTaskOperation.h
  3. // Pods
  4. //
  5. // Created by Garrett Moon on 3/12/15.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "PINURLSessionManager.h"
  10. @interface PINDataTaskOperation : NSOperation
  11. @property (nonatomic, readonly, nullable) NSURLSessionDataTask *dataTask;
  12. + (nonnull instancetype)dataTaskOperationWithSessionManager:(nonnull PINURLSessionManager *)sessionManager
  13. request:(nonnull NSURLRequest *)request
  14. completionHandler:(nonnull void (^)(NSURLResponse * _Nonnull response, NSError * _Nullable error))completionHandler;
  15. @end