![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingApiMergeService is used for making several requests in one HTTP request. More...
#import <ThingApiMergeService.h>
Properties | |
| ThingSDKSafeMutableArray * | requestList |
Additional Inherited Members | |
Class Methods inherited from ThingSmartRequest | |
| (void) | + registerIntercepterClass: |
| (void) | + unregisterIntercepterClass: |
| (void) | + configAccessToken:refreshToken: |
| (void) | + clearToken |
| (NSString *) | + requestToken |
| (void) | + removeAllCache |
| Remove network cache. More... | |
| (void) | + registerIntercepterClass: |
| (void) | + unregisterIntercepterClass: |
| (void) | + configAccessToken:refreshToken: |
| (void) | + clearToken |
| (NSString *) | + requestToken |
| (void) | + removeAllCache |
| Remove network cache. More... | |
| (void) | + registerIntercepterClass: |
| (void) | + unregisterIntercepterClass: |
| (void) | + configAccessToken:refreshToken: |
| (void) | + clearToken |
| (NSString *) | + requestToken |
| (void) | + removeAllCache |
| Remove network cache. More... | |
| (void) | + registerIntercepterClass: |
| (void) | + unregisterIntercepterClass: |
| (void) | + configAccessToken:refreshToken: |
| (void) | + clearToken |
| (NSString *) | + requestToken |
| (void) | + removeAllCache |
| Remove network cache. More... | |
ThingApiMergeService is used for making several requests in one HTTP request.
This class is used for reduce the number of network requests. Use it with the following steps:
-[ThingApiMergeService addApiRequest:postData:version:]- [ThingApiMergeService sendRequest:success:failure]. requests will be sent and received together.@discussion Due to HTTP/2 multiplexing technology, it is not recommend for use now.
Definition at line 25 of file ThingApiMergeService.h.
| - (void) addApiRequest: | (NSString *) | apiName | |
| postData: | (NSDictionary *) | postData | |
| version: | (NSString *) | version | |
Add api request.
| apiName | Api name. |
| postData | Post data. |
| version | Version. |
| - (void) addApiRequest: | (NSString *) | apiName | |
| postData: | (NSDictionary *) | postData | |
| version: | (NSString *) | version | |
Add api request.
| apiName | Api name. |
| postData | Post data. |
| version | Version. |
| - (void) addApiRequest: | (NSString *) | apiName | |
| postData: | (NSDictionary *) | postData | |
| version: | (NSString *) | version | |
Add api request.
| apiName | Api name. |
| postData | Post data. |
| version | Version. |
| - (void) addApiRequest: | (NSString *) | apiName | |
| postData: | (NSDictionary *) | postData | |
| version: | (NSString *) | version | |
Add api request.
| apiName | Api name. |
| postData | Post data. |
| version | Version. |
| - (void) sendRequest: | (NSDictionary *) | getData | |
| success: | (nullable void(^)(NSArray< ThingApiMergeModel * > *list)) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Send request.
| getData | Get data. |
| success | Called when the task finishes successfully. A list of ThingApiMergeModel will be returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) sendRequest: | (NSDictionary *) | getData | |
| success: | (nullable void(^)(NSArray< ThingApiMergeModel * > *list)) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Send request.
| getData | Get data. |
| success | Called when the task finishes successfully. A list of ThingApiMergeModel will be returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) sendRequest: | (NSDictionary *) | getData | |
| success: | (nullable void(^)(NSArray< ThingApiMergeModel * > *list)) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Send request.
| getData | Get data. |
| success | Called when the task finishes successfully. A list of ThingApiMergeModel will be returned. |
| failure | Called when the task is interrupted by an error. |
| - (void) sendRequest: | (NSDictionary *) | getData | |
| success: | (nullable void(^)(NSArray< ThingApiMergeModel * > *list)) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Send request.
| getData | Get data. |
| success | Called when the task finishes successfully. A list of ThingApiMergeModel will be returned. |
| failure | Called when the task is interrupted by an error. |
|
readwritenonatomicstrong |
Definition at line 27 of file ThingApiMergeService.h.