Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDeviceModelPatch Class Reference

根据元素设备信息、产品信息,组装 DeviceModel ,提供定制补偿数据 More...

#import <ThingSmartDeviceModelPatch.h>

Inheritance diagram for ThingSmartDeviceModelPatch:

Instance Methods

(void) - addPatcher:
 
(void) - removePatcher:
 
(void) - addPatcher:
 
(void) - removePatcher:
 
(void) - addPatcher:
 
(void) - removePatcher:
 
(void) - addPatcher:
 
(void) - removePatcher:
 

Class Methods

(instancetype) + shareInstance
 
(nullable NSArray< ThingSmartDeviceModel * > *) + buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock:
 
(instancetype) + shareInstance
 
(nullable NSArray< ThingSmartDeviceModel * > *) + buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock:
 
(instancetype) + shareInstance
 
(nullable NSArray< ThingSmartDeviceModel * > *) + buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock:
 
(instancetype) + shareInstance
 
(nullable NSArray< ThingSmartDeviceModel * > *) + buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock:
 

Detailed Description

根据元素设备信息、产品信息,组装 DeviceModel ,提供定制补偿数据

Definition at line 37 of file ThingSmartDeviceModelPatch.h.

Method Documentation

◆ addPatcher: [1/4]

- (void) addPatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

添加补偿器

  • Parameter patcher: 补偿器

◆ addPatcher: [2/4]

- (void) addPatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

添加补偿器

  • Parameter patcher: 补偿器

◆ addPatcher: [3/4]

- (void) addPatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

添加补偿器

  • Parameter patcher: 补偿器

◆ addPatcher: [4/4]

- (void) addPatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

添加补偿器

  • Parameter patcher: 补偿器

◆ buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock: [1/4]

+ (nullable NSArray< ThingSmartDeviceModel * > *) buildDeviceModelWithDeviceMapList: (nullable NSArray< NSDictionary * > *)  deviceList
productMapList: (nullable NSArray< NSDictionary * > *)  productList
patchType: (ThingSmartDeviceModelPatchType)  patchType
checkProductVer: (BOOL)  checkProductVer
customBlock: (void(^)(NSDictionary *srcDeviceMap, NSDictionary *srcDroductmap, NSMutableDictionary *newDeviceMap))  customBlock 

构建 DeviceModel,逐个调用补偿器的 patchDeviceModelMapList: 和 patchProductModelMapList:,然后转化模型后再逐个调用补偿器的 patchDeviceModel:

  • Parameters:
    • deviceList: 原始设备模型
    • productList: 原始产品模型
    • checkProductVer: 是否需要校验设备模型和产品模型里的版本
    • customBlock: 个性化数据补偿

◆ buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock: [2/4]

+ (nullable NSArray< ThingSmartDeviceModel * > *) buildDeviceModelWithDeviceMapList: (nullable NSArray< NSDictionary * > *)  deviceList
productMapList: (nullable NSArray< NSDictionary * > *)  productList
patchType: (ThingSmartDeviceModelPatchType)  patchType
checkProductVer: (BOOL)  checkProductVer
customBlock: (void(^)(NSDictionary *srcDeviceMap, NSDictionary *srcDroductmap, NSMutableDictionary *newDeviceMap))  customBlock 

构建 DeviceModel,逐个调用补偿器的 patchDeviceModelMapList: 和 patchProductModelMapList:,然后转化模型后再逐个调用补偿器的 patchDeviceModel:

  • Parameters:
    • deviceList: 原始设备模型
    • productList: 原始产品模型
    • checkProductVer: 是否需要校验设备模型和产品模型里的版本
    • customBlock: 个性化数据补偿

◆ buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock: [3/4]

+ (nullable NSArray< ThingSmartDeviceModel * > *) buildDeviceModelWithDeviceMapList: (nullable NSArray< NSDictionary * > *)  deviceList
productMapList: (nullable NSArray< NSDictionary * > *)  productList
patchType: (ThingSmartDeviceModelPatchType)  patchType
checkProductVer: (BOOL)  checkProductVer
customBlock: (void(^)(NSDictionary *srcDeviceMap, NSDictionary *srcDroductmap, NSMutableDictionary *newDeviceMap))  customBlock 

构建 DeviceModel,逐个调用补偿器的 patchDeviceModelMapList: 和 patchProductModelMapList:,然后转化模型后再逐个调用补偿器的 patchDeviceModel:

  • Parameters:
    • deviceList: 原始设备模型
    • productList: 原始产品模型
    • checkProductVer: 是否需要校验设备模型和产品模型里的版本
    • customBlock: 个性化数据补偿

◆ buildDeviceModelWithDeviceMapList:productMapList:patchType:checkProductVer:customBlock: [4/4]

+ (nullable NSArray< ThingSmartDeviceModel * > *) buildDeviceModelWithDeviceMapList: (nullable NSArray< NSDictionary * > *)  deviceList
productMapList: (nullable NSArray< NSDictionary * > *)  productList
patchType: (ThingSmartDeviceModelPatchType)  patchType
checkProductVer: (BOOL)  checkProductVer
customBlock: (void(^)(NSDictionary *srcDeviceMap, NSDictionary *srcDroductmap, NSMutableDictionary *newDeviceMap))  customBlock 

构建 DeviceModel,逐个调用补偿器的 patchDeviceModelMapList: 和 patchProductModelMapList:,然后转化模型后再逐个调用补偿器的 patchDeviceModel:

  • Parameters:
    • deviceList: 原始设备模型
    • productList: 原始产品模型
    • checkProductVer: 是否需要校验设备模型和产品模型里的版本
    • customBlock: 个性化数据补偿

◆ removePatcher: [1/4]

- (void) removePatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

删除补偿器

  • Parameter patcher: 补偿器

◆ removePatcher: [2/4]

- (void) removePatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

删除补偿器

  • Parameter patcher: 补偿器

◆ removePatcher: [3/4]

- (void) removePatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

删除补偿器

  • Parameter patcher: 补偿器

◆ removePatcher: [4/4]

- (void) removePatcher: (id< ThingSmartDeviceModelPatchProtocol >)  patcher

删除补偿器

  • Parameter patcher: 补偿器

◆ shareInstance [1/4]

+ (instancetype) shareInstance

◆ shareInstance [2/4]

+ (instancetype) shareInstance

◆ shareInstance [3/4]

+ (instancetype) shareInstance

◆ shareInstance [4/4]

+ (instancetype) shareInstance

The documentation for this class was generated from the following files: