BTGraphQLHTTP.h 926 B

123456789101112131415161718192021222324252627282930313233
  1. #if __has_include(<Braintree/BraintreeCore.h>) // CocoaPods
  2. #import <Braintree/BTHTTP.h>
  3. #elif SWIFT_PACKAGE // SPM
  4. // The only way SPM can find BTHTTP.h is using quoted includes,
  5. // so we need to silence the warning.
  6. #pragma clang diagnostic push
  7. #pragma clang diagnostic ignored "-Wquoted-include-in-framework-header"
  8. #import "BTHTTP.h"
  9. #pragma clang diagnostic pop
  10. #else // Carthage
  11. #import <BraintreeCore/BTHTTP.h>
  12. #endif
  13. NS_ASSUME_NONNULL_BEGIN
  14. @class BTHTTPResponse, BTClientToken;
  15. /**
  16. Performs HTTP methods on the Braintree Client API
  17. */
  18. @interface BTGraphQLHTTP : BTHTTP
  19. - (void)handleRequestCompletion:(nullable NSData *)data
  20. response:(nullable NSURLResponse *)response
  21. error:(nullable NSError *)error
  22. completionBlock:(void (^)(BTJSON * _Nonnull, NSHTTPURLResponse * _Nonnull, NSError * _Nonnull))completionBlock;
  23. @end
  24. NS_ASSUME_NONNULL_END