GizAepWifiSDK 场景动作 相关类
描述场景动作相关的枚举和类
目录
- GizAepControlDeviceActionCmd类
- GizAepSceneControlDeviceAction类
- GizAepSceneNoticeAction类
- GizAepSceneAction类
GizAepControlDeviceActionCmd类
设备控制指令类
[cmdId]
指令id
定义
@property (nonatomic, strong, readonly) NSString* cmdId;
[productKey]
设备productKey
定义
@property (nonatomic, strong) NSString* productKey;
[attrs]
控制指令JSON string
定义
@property (nonatomic, strong) NSString* attrs;
GizAepSceneControlDeviceAction类
控制设备结果类
[cmds]
发送指令内容
定义
@property (nonatomic, strong) NSArray<GizAepControlDeviceActionCmd*>* cmds;
[controlDeviceType]
控制类型,只支持传group,device
定义
@property (nonatomic, assign) GizAepDeviceType controlDeviceType;
[groupOrSno]
控制设备的groupId或设备sno
定义
@property (nonatomic, strong) NSString* groupOrSno;
[mac]
设备mac
定义
@property (nonatomic, strong) NSString* mac;
[productKey]
设备productKey
定义
@property (nonatomic, strong) NSString* productKey;
[actionId]
id
定义
@property (nonatomic, strong, readonly) NSString* actionId;
[remark]
备注
定义
@property (strong, nonatomic) NSString* remark;
GizAepSceneNoticeAction类
通知结果类
[actionId]
id
定义
@property (strong, nonatomic, readonly) NSString* actionId;
[remark]
备注
定义
@property (strong, nonatomic) NSString* remark;
[type]
推送类型
定义
@property (assign, nonatomic) GizAepNoticeActionType type;
[targets]
推送目标,传值为紧急联系人手机号码,多个目标使用英文半角逗号隔开
定义
@property (strong, nonatomic) NSString* targets;
GizAepSceneAction类
场景动作结果类
[actionId]
动作id
定义
@property (nonatomic, strong, readonly) NSString* actionId;
[delay]
延时时间,动作需要延时时必填,不支持单独设置延迟而没有执行结果
定义
@property (nonatomic, assign) NSTimeInterval delay;
[manualSceneId]
手动场景id 动作为自动场景结果为执行手动场景时必填;手动场景不支持改动作结果
定义
@property (nonatomic, strong) NSString* manualSceneId;
[controlDevice]
控制设备数据,动作为控制设备时必填
定义
@property (nonatomic, strong) GizAepSceneControlDeviceAction* controlDevice;
[notice]
通知数据,动作为通知时必填
定义
@property (nonatomic, strong) GizAepSceneNoticeAction* notice;
[sort]
序号,可通过修改序号通过编辑接口,修改动作执行顺序
定义
@property (nonatomic, assign) NSInteger sort;
[sceneType]
动作结果类型
定义
@property (nonatomic, assign) GizAepNoticeResultype sceneType;
[remark]
备注
定义
@property (nonatomic, strong) NSString* remark;