wxr
2021-07-01 43b0d5870d528f23ecd6aeceb6cfd4325188b46f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// TYApiMergeService.h
// TuyaSmartBaseKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import "TYApiMergeModel.h"
#import "TuyaSmartRequest.h"
 
NS_ASSUME_NONNULL_BEGIN
 
@interface TYApiMergeService : TuyaSmartRequest
 
@property (nonatomic, strong) TYSDKSafeMutableArray *requestList;
 
 
/// Add api request.
/// @param apiName Api name.
/// @param postData Post data.
/// @param version Version.
- (void)addApiRequest:(NSString *)apiName postData:(NSDictionary *)postData version:(NSString *)version;
 
 
/// Send request.
/// @param getData Get data.
/// @param success Called when the task finishes successfully. A list of TYApiMergeModel will be returned.
/// @param failure Called when the task is interrupted by an error.
- (void)sendRequest:(NSDictionary *)getData success:(nullable void (^)(NSArray <TYApiMergeModel *> *list))success failure:(nullable TYFailureError)failure;
 
@end
 
NS_ASSUME_NONNULL_END