Tuya iOS Smart Life App SDK 5.15.0
ThingSmartTimer Class Reference

ThingSmartTimer provides basic timing capabilities and supports device timing and group timing. The device timing function supports Wi-Fi devices, Bluetooth mesh sub-devices, and Zigbee sub-devices. More...

#import <ThingSmartTimer.h>

Inheritance diagram for ThingSmartTimer:

Instance Methods

(void) - getTimerTaskStatusWithDeviceId:success:failure:
 
(void) - getAllTimerWithDeviceId:success:failure:
 
(void) - updateTimerWithDeviceId:timezoneId:success:failure:
 
(void) - cancelRequest
 Cancels the ongoing request. More...
 
(void) - addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure:
 
(void) - getTimerTaskListWithBizId:bizType:success:failure:
 
(void) - getTimerListWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:
 
(void) - updateTimerStatusWithTask:bizId:bizType:status:success:failure:
 
(void) - removeTimerWithTimerId:bizId:bizType:success:failure:
 
(void) - removeTimerWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure:
 
(void) - updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure:
 
(void) - getTimerTaskStatusWithDeviceId:success:failure:
 
(void) - getAllTimerWithDeviceId:success:failure:
 
(void) - updateTimerWithDeviceId:timezoneId:success:failure:
 
(void) - cancelRequest
 Cancels the ongoing request. More...
 
(void) - addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure:
 
(void) - getTimerTaskListWithBizId:bizType:success:failure:
 
(void) - getTimerListWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:
 
(void) - updateTimerStatusWithTask:bizId:bizType:status:success:failure:
 
(void) - removeTimerWithTimerId:bizId:bizType:success:failure:
 
(void) - removeTimerWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure:
 
(void) - updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure:
 
(void) - getTimerTaskStatusWithDeviceId:success:failure:
 
(void) - getAllTimerWithDeviceId:success:failure:
 
(void) - updateTimerWithDeviceId:timezoneId:success:failure:
 
(void) - cancelRequest
 Cancels the ongoing request. More...
 
(void) - addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure:
 
(void) - getTimerTaskListWithBizId:bizType:success:failure:
 
(void) - getTimerListWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:
 
(void) - updateTimerStatusWithTask:bizId:bizType:status:success:failure:
 
(void) - removeTimerWithTimerId:bizId:bizType:success:failure:
 
(void) - removeTimerWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure:
 
(void) - updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure:
 
(void) - getTimerTaskStatusWithDeviceId:success:failure:
 
(void) - getAllTimerWithDeviceId:success:failure:
 
(void) - updateTimerWithDeviceId:timezoneId:success:failure:
 
(void) - cancelRequest
 Cancels the ongoing request. More...
 
(void) - addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure:
 
(void) - getTimerTaskListWithBizId:bizType:success:failure:
 
(void) - getTimerListWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:
 
(void) - updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:
 
(void) - updateTimerStatusWithTask:bizId:bizType:status:success:failure:
 
(void) - removeTimerWithTimerId:bizId:bizType:success:failure:
 
(void) - removeTimerWithTask:bizId:bizType:success:failure:
 
(void) - updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure:
 
(void) - updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - updateTimerTaskStatusWithTask:devId:status:success:failure:
 
(void) - updateTimerTaskStatusWithTask:devId:status:success:failure:
 
(void) - updateTimerTaskStatusWithTask:devId:status:success:failure:
 
(void) - updateTimerTaskStatusWithTask:devId:status:success:failure:
 
(void) - updateTimerStatusWithTask:devId:timerId:status:success:failure:
 
(void) - updateTimerStatusWithTask:devId:timerId:status:success:failure:
 
(void) - updateTimerStatusWithTask:devId:timerId:status:success:failure:
 
(void) - updateTimerStatusWithTask:devId:timerId:status:success:failure:
 
(void) - removeTimerWithTask:devId:timerId:success:failure:
 
(void) - removeTimerWithTask:devId:timerId:success:failure:
 
(void) - removeTimerWithTask:devId:timerId:success:failure:
 
(void) - removeTimerWithTask:devId:timerId:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure:
 
(void) - getTimerWithTask:devId:success:failure:
 
(void) - getTimerWithTask:devId:success:failure:
 
(void) - getTimerWithTask:devId:success:failure:
 
(void) - getTimerWithTask:devId:success:failure:
 

Detailed Description

ThingSmartTimer provides basic timing capabilities and supports device timing and group timing. The device timing function supports Wi-Fi devices, Bluetooth mesh sub-devices, and Zigbee sub-devices.

ThingSmartTimer also encapsulates the API operations to add, delete, and check timer data for device data points (DPs). After the timer data is configured for the app in the calls of the timing API operations, the hardware module automatically runs the scheduled tasks based on the timing requirements. Multiple timers can be included in the same timer task.

Definition at line 71 of file ThingSmartTimer.h.

Method Documentation

◆ addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure: [1/4]

- (void) addTimerIdWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
successWithTimerId: (ThingSuccessID success
failure: (ThingFailureError failure 

Set timers for each device or group and return timerTaskId in success.

Note
The maximum number of timings per device or group is 30.
Parameters
taskThe task name of the timer.
loopsNumber of loop.
bizIdIf it is a device, here is the device Id; if it is a group, here is the group id.
bizTypePass 0 if the type is device, otherwise, 1 for the group.
timeTimed clocks under timed tasks.
dpsCommand Dictionary.
statusA boolean value indicates whether to turn on the timer.
isAppPushA boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task finishes successfully, contains the timerId.
failureCalled when the task is interrupted by an error.

◆ addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure: [2/4]

- (void) addTimerIdWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
successWithTimerId: (ThingSuccessID success
failure: (ThingFailureError failure 

Set timers for each device or group and return timerTaskId in success.

Note
The maximum number of timings per device or group is 30.
Parameters
taskThe task name of the timer.
loopsNumber of loop.
bizIdIf it is a device, here is the device Id; if it is a group, here is the group id.
bizTypePass 0 if the type is device, otherwise, 1 for the group.
timeTimed clocks under timed tasks.
dpsCommand Dictionary.
statusA boolean value indicates whether to turn on the timer.
isAppPushA boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task finishes successfully, contains the timerId.
failureCalled when the task is interrupted by an error.

◆ addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure: [3/4]

- (void) addTimerIdWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
successWithTimerId: (ThingSuccessID success
failure: (ThingFailureError failure 

Set timers for each device or group and return timerTaskId in success.

Note
The maximum number of timings per device or group is 30.
Parameters
taskThe task name of the timer.
loopsNumber of loop.
bizIdIf it is a device, here is the device Id; if it is a group, here is the group id.
bizTypePass 0 if the type is device, otherwise, 1 for the group.
timeTimed clocks under timed tasks.
dpsCommand Dictionary.
statusA boolean value indicates whether to turn on the timer.
isAppPushA boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task finishes successfully, contains the timerId.
failureCalled when the task is interrupted by an error.

◆ addTimerIdWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:successWithTimerId:failure: [4/4]

- (void) addTimerIdWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
successWithTimerId: (ThingSuccessID success
failure: (ThingFailureError failure 

Set timers for each device or group and return timerTaskId in success.

Note
The maximum number of timings per device or group is 30.
Parameters
taskThe task name of the timer.
loopsNumber of loop.
bizIdIf it is a device, here is the device Id; if it is a group, here is the group id.
bizTypePass 0 if the type is device, otherwise, 1 for the group.
timeTimed clocks under timed tasks.
dpsCommand Dictionary.
statusA boolean value indicates whether to turn on the timer.
isAppPushA boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task finishes successfully, contains the timerId.
failureCalled when the task is interrupted by an error.

◆ addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [1/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets timers for each device or group.

Note
The maximum number of timers per device or group is 30.
Parameters
taskThe task name of the timer.
loopsThe number of loops.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe timing clocks for timer tasks.
dpsThe command dictionary.
statusA Boolean value that specifies whether to enable the timer.
isAppPushA Boolean value that specifies whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [2/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets timers for each device or group.

Note
The maximum number of timers per device or group is 30.
Parameters
taskThe task name of the timer.
loopsThe number of loops.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe timing clocks for timer tasks.
dpsThe command dictionary.
statusA Boolean value that specifies whether to enable the timer.
isAppPushA Boolean value that specifies whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [3/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets timers for each device or group.

Note
The maximum number of timers per device or group is 30.
Parameters
taskThe task name of the timer.
loopsThe number of loops.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe timing clocks for timer tasks.
dpsThe command dictionary.
statusA Boolean value that specifies whether to enable the timer.
isAppPushA Boolean value that specifies whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [4/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets timers for each device or group.

Note
The maximum number of timers per device or group is 30.
Parameters
taskThe task name of the timer.
loopsThe number of loops.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe timing clocks for timer tasks.
dpsThe command dictionary.
statusA Boolean value that specifies whether to enable the timer.
isAppPushA Boolean value that specifies whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure: [1/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add timed tasks.

Parameters
taskThe name of the task.
loopsNumber of cycles.
devIdThe device ID.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00, if the phone time zone is not taken.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure: [2/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add timed tasks.

Parameters
taskThe name of the task.
loopsNumber of cycles.
devIdThe device ID.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00, if the phone time zone is not taken.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure: [3/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add timed tasks.

Parameters
taskThe name of the task.
loopsNumber of cycles.
devIdThe device ID.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00, if the phone time zone is not taken.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:isAppPush:aliasName:success:failure: [4/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add timed tasks.

Parameters
taskThe name of the task.
loopsNumber of cycles.
devIdThe device ID.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00, if the phone time zone is not taken.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:success:failure: [1/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add a new task for timer.

Parameters
taskThe name of task.
loopsThe count of loop for the timer task.
devIdThe device ID for which the timer task needs to run on.
timeThe specific time to trigger this task.
dpsThe data point dictionary.
timeZoneThe timezone of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:success:failure: [2/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add a new task for timer.

Parameters
taskThe name of task.
loopsThe count of loop for the timer task.
devIdThe device ID for which the timer task needs to run on.
timeThe specific time to trigger this task.
dpsThe data point dictionary.
timeZoneThe timezone of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:success:failure: [3/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add a new task for timer.

Parameters
taskThe name of task.
loopsThe count of loop for the timer task.
devIdThe device ID for which the timer task needs to run on.
timeThe specific time to trigger this task.
dpsThe data point dictionary.
timeZoneThe timezone of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ addTimerWithTask:loops:devId:time:dps:timeZone:success:failure: [4/4]

- (void) addTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] 

Add a new task for timer.

Parameters
taskThe name of task.
loopsThe count of loop for the timer task.
devIdThe device ID for which the timer task needs to run on.
timeThe specific time to trigger this task.
dpsThe data point dictionary.
timeZoneThe timezone of the device.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ cancelRequest [1/4]

- (void) cancelRequest

Cancels the ongoing request.

◆ cancelRequest [2/4]

- (void) cancelRequest

Cancels the ongoing request.

◆ cancelRequest [3/4]

- (void) cancelRequest

Cancels the ongoing request.

◆ cancelRequest [4/4]

- (void) cancelRequest

Cancels the ongoing request.

◆ getAllTimerWithDeviceId:success:failure: [1/4]

- (void) getAllTimerWithDeviceId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns all timers that are configured for a specified device.

Parameters
devIdThe ID of the device for which the timers are configured.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getAllTimerWithDeviceId:success:failure: [2/4]

- (void) getAllTimerWithDeviceId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns all timers that are configured for a specified device.

Parameters
devIdThe ID of the device for which the timers are configured.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getAllTimerWithDeviceId:success:failure: [3/4]

- (void) getAllTimerWithDeviceId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns all timers that are configured for a specified device.

Parameters
devIdThe ID of the device for which the timers are configured.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getAllTimerWithDeviceId:success:failure: [4/4]

- (void) getAllTimerWithDeviceId: (NSString *)  devId
success: (ThingSuccessDict success
failure: (ThingFailureError failure 

Returns all timers that are configured for a specified device.

Parameters
devIdThe ID of the device for which the timers are configured.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ getTimerListWithTask:bizId:bizType:success:failure: [1/4]

- (void) getTimerListWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: (ThingFailureError failure 

Returns the timer for a specified task of the device or group.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerListWithTask:bizId:bizType:success:failure: [2/4]

- (void) getTimerListWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: (ThingFailureError failure 

Returns the timer for a specified task of the device or group.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerListWithTask:bizId:bizType:success:failure: [3/4]

- (void) getTimerListWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: (ThingFailureError failure 

Returns the timer for a specified task of the device or group.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerListWithTask:bizId:bizType:success:failure: [4/4]

- (void) getTimerListWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: (ThingFailureError failure 

Returns the timer for a specified task of the device or group.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskListWithBizId:bizType:success:failure: [1/4]

- (void) getTimerTaskListWithBizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingCategoryTimersModel * > *list))  success
failure: (ThingFailureError failure 

Returns all the timers for a specified task of the device or group.

Parameters
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingCategoryTimersModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskListWithBizId:bizType:success:failure: [2/4]

- (void) getTimerTaskListWithBizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingCategoryTimersModel * > *list))  success
failure: (ThingFailureError failure 

Returns all the timers for a specified task of the device or group.

Parameters
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingCategoryTimersModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskListWithBizId:bizType:success:failure: [3/4]

- (void) getTimerTaskListWithBizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingCategoryTimersModel * > *list))  success
failure: (ThingFailureError failure 

Returns all the timers for a specified task of the device or group.

Parameters
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingCategoryTimersModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskListWithBizId:bizType:success:failure: [4/4]

- (void) getTimerTaskListWithBizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (void(^)(NSArray< ThingCategoryTimersModel * > *list))  success
failure: (ThingFailureError failure 

Returns all the timers for a specified task of the device or group.

Parameters
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished. A list of ThingCategoryTimersModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskStatusWithDeviceId:success:failure: [1/4]

- (void) getTimerTaskStatusWithDeviceId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerTaskModel * > *list))  success
failure: (ThingFailureError failure 

Returns a list of timer tasks.

Parameters
devIdThe ID of the device to which the timer tasks are assigned.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskStatusWithDeviceId:success:failure: [2/4]

- (void) getTimerTaskStatusWithDeviceId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerTaskModel * > *list))  success
failure: (ThingFailureError failure 

Returns a list of timer tasks.

Parameters
devIdThe ID of the device to which the timer tasks are assigned.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskStatusWithDeviceId:success:failure: [3/4]

- (void) getTimerTaskStatusWithDeviceId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerTaskModel * > *list))  success
failure: (ThingFailureError failure 

Returns a list of timer tasks.

Parameters
devIdThe ID of the device to which the timer tasks are assigned.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerTaskStatusWithDeviceId:success:failure: [4/4]

- (void) getTimerTaskStatusWithDeviceId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerTaskModel * > *list))  success
failure: (ThingFailureError failure 

Returns a list of timer tasks.

Parameters
devIdThe ID of the device to which the timer tasks are assigned.
successCalled when the task is finished. A list of ThingTimerTaskModel is returned.
failureCalled when the task is interrupted by an error.

◆ getTimerWithTask:devId:success:failure: [1/4]

- (void) getTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer getTimerListWithTask:bizId:bizType:success:failure:] 

Get all timer clocks under timer task.

Parameters
taskThe name of the timer task.
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use getTimerListWithTask:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ getTimerWithTask:devId:success:failure: [2/4]

- (void) getTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer getTimerListWithTask:bizId:bizType:success:failure:] 

Get all timer clocks under timer task.

Parameters
taskThe name of the timer task.
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use getTimerListWithTask:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ getTimerWithTask:devId:success:failure: [3/4]

- (void) getTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer getTimerListWithTask:bizId:bizType:success:failure:] 

Get all timer clocks under timer task.

Parameters
taskThe name of the timer task.
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use getTimerListWithTask:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ getTimerWithTask:devId:success:failure: [4/4]

- (void) getTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
success: (void(^)(NSArray< ThingTimerModel * > *list))  success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer getTimerListWithTask:bizId:bizType:success:failure:] 

Get all timer clocks under timer task.

Parameters
taskThe name of the timer task.
devIdThe device ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use getTimerListWithTask:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ removeTimerWithTask:bizId:bizType:success:failure: [1/4]

- (void) removeTimerWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes all timers from a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTask:bizId:bizType:success:failure: [2/4]

- (void) removeTimerWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes all timers from a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTask:bizId:bizType:success:failure: [3/4]

- (void) removeTimerWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes all timers from a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTask:bizId:bizType:success:failure: [4/4]

- (void) removeTimerWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes all timers from a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTask:devId:timerId:success:failure: [1/4]

- (void) removeTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer removeTimerWithTimerId:bizId:bizType:success:failure:] 

Delete time clock.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use removeTimerWithTimerId:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ removeTimerWithTask:devId:timerId:success:failure: [2/4]

- (void) removeTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer removeTimerWithTimerId:bizId:bizType:success:failure:] 

Delete time clock.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use removeTimerWithTimerId:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ removeTimerWithTask:devId:timerId:success:failure: [3/4]

- (void) removeTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer removeTimerWithTimerId:bizId:bizType:success:failure:] 

Delete time clock.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use removeTimerWithTimerId:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ removeTimerWithTask:devId:timerId:success:failure: [4/4]

- (void) removeTimerWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer removeTimerWithTimerId:bizId:bizType:success:failure:] 

Delete time clock.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use removeTimerWithTimerId:bizId:bizType:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ removeTimerWithTimerId:bizId:bizType:success:failure: [1/4]

- (void) removeTimerWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes a single timer.

Parameters
timerIdThe timer ID for the delete process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTimerId:bizId:bizType:success:failure: [2/4]

- (void) removeTimerWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes a single timer.

Parameters
timerIdThe timer ID for the delete process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTimerId:bizId:bizType:success:failure: [3/4]

- (void) removeTimerWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes a single timer.

Parameters
timerIdThe timer ID for the delete process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ removeTimerWithTimerId:bizId:bizType:success:failure: [4/4]

- (void) removeTimerWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes a single timer.

Parameters
timerIdThe timer ID for the delete process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTask:bizId:bizType:status:success:failure: [1/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the status of all-time clocks for a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTask:bizId:bizType:status:success:failure: [2/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the status of all-time clocks for a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTask:bizId:bizType:status:success:failure: [3/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the status of all-time clocks for a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTask:bizId:bizType:status:success:failure: [4/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the status of all-time clocks for a specific task.

Parameters
taskThe name of the timer task.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTask:devId:timerId:status:success:failure: [1/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:] 

Update timeclock status.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
statusTiming clock status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerStatusWithTask:devId:timerId:status:success:failure: [2/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:] 

Update timeclock status.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
statusTiming clock status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerStatusWithTask:devId:timerId:status:success:failure: [3/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:] 

Update timeclock status.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
statusTiming clock status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerStatusWithTask:devId:timerId:status:success:failure: [4/4]

- (void) updateTimerStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
timerId: (NSString *)  timerId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:] 

Update timeclock status.

Parameters
taskThe name of the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
statusTiming clock status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: [1/4]

- (void) updateTimerStatusWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the timer status of a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: [2/4]

- (void) updateTimerStatusWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the timer status of a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: [3/4]

- (void) updateTimerStatusWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the timer status of a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: [4/4]

- (void) updateTimerStatusWithTimerId: (NSString *)  timerId
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
status: (BOOL)  status
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the timer status of a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
statusA Boolean value that indicates whether to enable the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure: [1/4]

- (void) updateTimerStatusWithTimerIds: (NSArray< NSString * > *)  timerIds
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (int)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies common timing status of multiple timer IDs or deletes multiple timers in a request.

Parameters
timerIdsThe timer IDs for the batch operation.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure: [2/4]

- (void) updateTimerStatusWithTimerIds: (NSArray< NSString * > *)  timerIds
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (int)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies common timing status of multiple timer IDs or deletes multiple timers in a request.

Parameters
timerIdsThe timer IDs for the batch operation.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure: [3/4]

- (void) updateTimerStatusWithTimerIds: (NSArray< NSString * > *)  timerIds
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (int)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies common timing status of multiple timer IDs or deletes multiple timers in a request.

Parameters
timerIdsThe timer IDs for the batch operation.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerStatusWithTimerIds:bizId:bizType:updateType:success:failure: [4/4]

- (void) updateTimerStatusWithTimerIds: (NSArray< NSString * > *)  timerIds
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (int)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies common timing status of multiple timer IDs or deletes multiple timers in a request.

Parameters
timerIdsThe timer IDs for the batch operation.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure: [1/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (NSUInteger)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies all timing status of a timer task or delete a timer.

Parameters
taskThe name of the timer task.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure: [2/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (NSUInteger)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies all timing status of a timer task or delete a timer.

Parameters
taskThe name of the timer task.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure: [3/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (NSUInteger)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies all timing status of a timer task or delete a timer.

Parameters
taskThe name of the timer task.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerTaskStatusWithTask:bizId:bizType:updateType:success:failure: [4/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
updateType: (NSUInteger)  updateType
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies all timing status of a timer task or delete a timer.

Parameters
taskThe name of the timer task.
bizIdThe service ID. Set the value to a device ID for device timing and a group ID for group timing.
bizTypeThe service type. Set the value to 0 for device timing and 1 for group timing.
updateTypeThe type of update. Valid values: 0: disables the timer. 1: enables the timer. 2: deletes the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerTaskStatusWithTask:devId:status:success:failure: [1/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTask:bizId:bizType:status:success:failure:] 

Update timer task status.

Parameters
taskThe name of the task.
devIdThe device ID.
statusTiming group status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTask:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerTaskStatusWithTask:devId:status:success:failure: [2/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTask:bizId:bizType:status:success:failure:] 

Update timer task status.

Parameters
taskThe name of the task.
devIdThe device ID.
statusTiming group status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTask:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerTaskStatusWithTask:devId:status:success:failure: [3/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTask:bizId:bizType:status:success:failure:] 

Update timer task status.

Parameters
taskThe name of the task.
devIdThe device ID.
statusTiming group status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTask:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerTaskStatusWithTask:devId:status:success:failure: [4/4]

- (void) updateTimerTaskStatusWithTask: (NSString *)  task
devId: (NSString *)  devId
status: (NSInteger)  status
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerStatusWithTask:bizId:bizType:status:success:failure:] 

Update timer task status.

Parameters
taskThe name of the task.
devIdThe device ID.
statusTiming group status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use updateTimerStatusWithTask:bizId:bizType:status:success:failure: instead instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithDeviceId:timezoneId:success:failure: [1/4]

- (void) updateTimerWithDeviceId: (NSString *)  devId
timezoneId: (NSString *)  timezoneId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the time zone of a specified device.

Parameters
devIdThe ID of the device for which the time zone is updated.
timezoneIdThe ID of the time zone, such as "Asia/Shanghai".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithDeviceId:timezoneId:success:failure: [2/4]

- (void) updateTimerWithDeviceId: (NSString *)  devId
timezoneId: (NSString *)  timezoneId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the time zone of a specified device.

Parameters
devIdThe ID of the device for which the time zone is updated.
timezoneIdThe ID of the time zone, such as "Asia/Shanghai".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithDeviceId:timezoneId:success:failure: [3/4]

- (void) updateTimerWithDeviceId: (NSString *)  devId
timezoneId: (NSString *)  timezoneId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the time zone of a specified device.

Parameters
devIdThe ID of the device for which the time zone is updated.
timezoneIdThe ID of the time zone, such as "Asia/Shanghai".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithDeviceId:timezoneId:success:failure: [4/4]

- (void) updateTimerWithDeviceId: (NSString *)  devId
timezoneId: (NSString *)  timezoneId
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the time zone of a specified device.

Parameters
devIdThe ID of the device for which the time zone is updated.
timezoneIdThe ID of the time zone, such as "Asia/Shanghai".
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure: [1/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure: [2/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure: [3/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:isAppPush:aliasName:success:failure: [4/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
isAppPushA Boolean value indicates whether to turn on the push notification.
aliasNameThe remark for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure: [1/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure: [2/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure: [3/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTask:loops:devId:timerId:time:dps:timeZone:success:failure: [4/4]

- (void) updateTimerWithTask: (NSString *)  task
loops: (NSString *)  loops
devId: (NSString *)  devId
timerId: (NSString *)  timerId
time: (NSString *)  time
dps: (NSDictionary *)  dps
timeZone: (NSString *)  timeZone
success: (ThingSuccessHandler success
failure: ("This method is)  deprecated
(Use instead")  __deprecated_msg[ThingSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] 

Update the timer.

Parameters
taskThe name of the timer task.
loopsThe count of loop for the timer task.
devIdThe device ID.
timerIdThe timer ID for the update process.
timeTimed clocks under timed tasks
dpsCommand dictionary.
timeZoneTime zone of the device +08:00.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, Use ThingSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.

Provided by category ThingSmartTimer(ThingDeprecatedApi).

◆ updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [1/4]

- (void) updateTimerWithTimerId: (NSString *)  timerId
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the specified timer information about a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
loopsThe number of loops in the format of "0000000". Each bit of the string specifies whether to update the timer on a specific day within a week. 0: disables the update. 1: enables the update. Each bit means the following days in sequence from left to right: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. For example, 0100000 means every Monday.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe scheduled time, such as 18:00.
dpsThe command dictionary.
statusA Boolean value that indicates whether to enable the timer.
isAppPushA Boolean value that indicates whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [2/4]

- (void) updateTimerWithTimerId: (NSString *)  timerId
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the specified timer information about a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
loopsThe number of loops in the format of "0000000". Each bit of the string specifies whether to update the timer on a specific day within a week. 0: disables the update. 1: enables the update. Each bit means the following days in sequence from left to right: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. For example, 0100000 means every Monday.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe scheduled time, such as 18:00.
dpsThe command dictionary.
statusA Boolean value that indicates whether to enable the timer.
isAppPushA Boolean value that indicates whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [3/4]

- (void) updateTimerWithTimerId: (NSString *)  timerId
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the specified timer information about a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
loopsThe number of loops in the format of "0000000". Each bit of the string specifies whether to update the timer on a specific day within a week. 0: disables the update. 1: enables the update. Each bit means the following days in sequence from left to right: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. For example, 0100000 means every Monday.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe scheduled time, such as 18:00.
dpsThe command dictionary.
statusA Boolean value that indicates whether to enable the timer.
isAppPushA Boolean value that indicates whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateTimerWithTimerId:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: [4/4]

- (void) updateTimerWithTimerId: (NSString *)  timerId
loops: (NSString *)  loops
bizId: (NSString *)  bizId
bizType: (NSUInteger)  bizType
time: (NSString *)  time
dps: (NSDictionary *)  dps
status: (BOOL)  status
isAppPush: (BOOL)  isAppPush
aliasName: (NSString *)  aliasName
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Updates the specified timer information about a specified task for the device or group.

Parameters
timerIdThe timer ID for the update process.
loopsThe number of loops in the format of "0000000". Each bit of the string specifies whether to update the timer on a specific day within a week. 0: disables the update. 1: enables the update. Each bit means the following days in sequence from left to right: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday. For example, 0100000 means every Monday.
bizIdSet the value to a device ID for device timing and a group ID for group timing.
bizTypeSet the value to 0 for device timing and 1 for group timing.
timeThe scheduled time, such as 18:00.
dpsThe command dictionary.
statusA Boolean value that indicates whether to enable the timer.
isAppPushA Boolean value that indicates whether to enable the push notification.
aliasNameThe remarks for the task.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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