mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
24 lines
709 B
Objective-C
Executable File
24 lines
709 B
Objective-C
Executable File
//
|
|
// STPAPIPostRequest.h
|
|
// Stripe
|
|
//
|
|
// Created by Jack Flintermann on 10/14/15.
|
|
// Copyright © 2015 Stripe, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "STPAPIResponseDecodable.h"
|
|
@class STPAPIClient;
|
|
|
|
@interface STPAPIPostRequest<__covariant ResponseType:id<STPAPIResponseDecodable>> : NSObject
|
|
|
|
typedef void(^STPAPIPostResponseBlock)(ResponseType object, NSHTTPURLResponse *response, NSError *error);
|
|
|
|
+ (void)startWithAPIClient:(STPAPIClient *)apiClient
|
|
endpoint:(NSString *)endpoint
|
|
postData:(NSData *)postData
|
|
serializer:(ResponseType)serializer
|
|
completion:(STPAPIPostResponseBlock)completion;
|
|
|
|
@end
|