Skip to content

Commit d52bbb2

Browse files
tonychanchenoldcodefarmer
authored andcommitted
修改参数命名,避免冲突
Change-Id: Icf7064bc3babe4c201dadf8a7f8b407452f3d0b2
1 parent d8bda52 commit d52bbb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Source/SDK/LinkCore/QCAPISets/Public/TIoTCoreDeviceSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ typedef NS_ENUM(NSInteger,TIotApiHost) {
5656
@property (nonatomic,strong) void (^deviceChange)(NSDictionary *changeInfo);
5757

5858
/// 注册设备监听(调用成功后才能收到deviceChange)
59-
- (void)activePushWithDeviceIds:(NSArray *)deviceIds complete:(Result)result;
59+
- (void)activePushWithDeviceIds:(NSArray *)deviceIds complete:(TIoTResult)result;
6060

6161
/// 获取设备列表
6262
/// @param offset 非必传(忽略时传0),所需要查询的数据的偏移量

Source/SDK/LinkCore/QCAPISets/Public/TIoTCoreDeviceSet.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ - (void)setDeviceChange:(void (^)(NSDictionary *))deviceChange
241241
}
242242

243243

244-
- (void)activePushWithDeviceIds:(NSArray *)deviceIds complete:(Result)result
244+
- (void)activePushWithDeviceIds:(NSArray *)deviceIds complete:(TIoTResult)result
245245
{
246246
NSDictionary *params = @{
247247
@"action":@"YunApi",

Source/SDK/LinkCore/QCAPISets/Public/TIoTCoreParts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
typedef void (^FRHandler)(NSString * _Nullable reason,NSError * _Nullable error, NSDictionary * _Nullable dic);
1111
typedef void (^SRHandler)(id _Nonnull responseObject);
12-
typedef void(^Result) (BOOL success, id _Nullable data);
12+
typedef void(^TIoTResult) (BOOL success, id _Nullable data);
1313

1414
#endif /* QCParts_h */

0 commit comments

Comments
 (0)