YXHomeSceneConditionModel.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // YXHomeSceneConditionModel.h
  3. // Temperature
  4. //
  5. // Created by TC on 2025/3/8.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class YXExprModel;
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface YXHomeSceneConditionModel : NSObject
  11. /// 条件编号
  12. @property (nonatomic, nullable, copy) NSString *code;
  13. /// 设备id
  14. @property (nonatomic, nullable, copy) NSString *entity_id;
  15. /// 条件对象类型 timer 定时 weather 天气 device_report 设备上报
  16. @property (nonatomic, nullable, copy) NSString *entity_type;
  17. /// 计算表达式
  18. @property (nonatomic, nullable, strong) YXExprModel *expr;
  19. /// 记录id
  20. @property (nonatomic, nullable, copy) NSString *record_id;
  21. /// 场景id
  22. @property (nonatomic, nullable, copy) NSString *scene_id;
  23. @end
  24. /// 计算表达式
  25. @interface YXExprModel : NSObject
  26. /// 比较表达式
  27. @property (nonatomic, nullable, copy) NSString *comparator;
  28. /// 日期表达式
  29. @property (nonatomic, nullable, copy) NSString *date;
  30. /// /* 触发周期,由 0 和 1 组成的 7 位数字。0 表示不执行,1 表示执行。第 1 位为周日,依次表示周一至周六。例如,0011000
  31. /// 表示每周二,周三执行。 */
  32. @property (nonatomic, nullable, copy) NSString *loops;
  33. /// 状态集 code
  34. @property (nonatomic, nullable, copy) NSString *status_code;
  35. /// 状态集 value
  36. @property (nonatomic, nullable, copy) NSString *status_value;
  37. /// 时间表达式
  38. @property (nonatomic, nullable, copy) NSString *time;
  39. /// 时区id
  40. @property (nonatomic, nullable, copy) NSString *time_zone_id;
  41. /// 状态集 code
  42. @property (nonatomic, nullable, copy) NSString *weather_code;
  43. /// 状态集 value
  44. @property (nonatomic, nullable, copy) NSString *weather_value;
  45. @end
  46. NS_ASSUME_NONNULL_END