![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
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>
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.
- (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.
task | The task name of the timer. |
loops | Number of loop. |
bizId | If it is a device, here is the device Id; if it is a group, here is the group id. |
bizType | Pass 0 if the type is device, otherwise, 1 for the group. |
time | Timed clocks under timed tasks. |
dps | Command Dictionary. |
status | A boolean value indicates whether to turn on the timer. |
isAppPush | A boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task finishes successfully, contains the timerId. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | Number of loop. |
bizId | If it is a device, here is the device Id; if it is a group, here is the group id. |
bizType | Pass 0 if the type is device, otherwise, 1 for the group. |
time | Timed clocks under timed tasks. |
dps | Command Dictionary. |
status | A boolean value indicates whether to turn on the timer. |
isAppPush | A boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task finishes successfully, contains the timerId. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | Number of loop. |
bizId | If it is a device, here is the device Id; if it is a group, here is the group id. |
bizType | Pass 0 if the type is device, otherwise, 1 for the group. |
time | Timed clocks under timed tasks. |
dps | Command Dictionary. |
status | A boolean value indicates whether to turn on the timer. |
isAppPush | A boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task finishes successfully, contains the timerId. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | Number of loop. |
bizId | If it is a device, here is the device Id; if it is a group, here is the group id. |
bizType | Pass 0 if the type is device, otherwise, 1 for the group. |
time | Timed clocks under timed tasks. |
dps | Command Dictionary. |
status | A boolean value indicates whether to turn on the timer. |
isAppPush | A boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task finishes successfully, contains the timerId. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | The number of loops. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The timing clocks for timer tasks. |
dps | The command dictionary. |
status | A Boolean value that specifies whether to enable the timer. |
isAppPush | A Boolean value that specifies whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | The number of loops. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The timing clocks for timer tasks. |
dps | The command dictionary. |
status | A Boolean value that specifies whether to enable the timer. |
isAppPush | A Boolean value that specifies whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | The number of loops. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The timing clocks for timer tasks. |
dps | The command dictionary. |
status | A Boolean value that specifies whether to enable the timer. |
isAppPush | A Boolean value that specifies whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The task name of the timer. |
loops | The number of loops. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The timing clocks for timer tasks. |
dps | The command dictionary. |
status | A Boolean value that specifies whether to enable the timer. |
isAppPush | A Boolean value that specifies whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the task. |
loops | Number of cycles. |
devId | The device ID. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00, if the phone time zone is not taken. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
loops | Number of cycles. |
devId | The device ID. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00, if the phone time zone is not taken. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
loops | Number of cycles. |
devId | The device ID. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00, if the phone time zone is not taken. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
loops | Number of cycles. |
devId | The device ID. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00, if the phone time zone is not taken. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of task. |
loops | The count of loop for the timer task. |
devId | The device ID for which the timer task needs to run on. |
time | The specific time to trigger this task. |
dps | The data point dictionary. |
timeZone | The timezone of the device. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of task. |
loops | The count of loop for the timer task. |
devId | The device ID for which the timer task needs to run on. |
time | The specific time to trigger this task. |
dps | The data point dictionary. |
timeZone | The timezone of the device. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of task. |
loops | The count of loop for the timer task. |
devId | The device ID for which the timer task needs to run on. |
time | The specific time to trigger this task. |
dps | The data point dictionary. |
timeZone | The timezone of the device. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of task. |
loops | The count of loop for the timer task. |
devId | The device ID for which the timer task needs to run on. |
time | The specific time to trigger this task. |
dps | The data point dictionary. |
timeZone | The timezone of the device. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (void) cancelRequest |
Cancels the ongoing request.
- (void) cancelRequest |
Cancels the ongoing request.
- (void) cancelRequest |
Cancels the ongoing request.
- (void) cancelRequest |
Cancels the ongoing request.
- (void) getAllTimerWithDeviceId: | (NSString *) | devId | |
success: | (ThingSuccessDict) | success | |
failure: | (ThingFailureError) | failure | |
Returns all timers that are configured for a specified device.
devId | The ID of the device for which the timers are configured. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAllTimerWithDeviceId: | (NSString *) | devId | |
success: | (ThingSuccessDict) | success | |
failure: | (ThingFailureError) | failure | |
Returns all timers that are configured for a specified device.
devId | The ID of the device for which the timers are configured. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAllTimerWithDeviceId: | (NSString *) | devId | |
success: | (ThingSuccessDict) | success | |
failure: | (ThingFailureError) | failure | |
Returns all timers that are configured for a specified device.
devId | The ID of the device for which the timers are configured. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) getAllTimerWithDeviceId: | (NSString *) | devId | |
success: | (ThingSuccessDict) | success | |
failure: | (ThingFailureError) | failure | |
Returns all timers that are configured for a specified device.
devId | The ID of the device for which the timers are configured. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingCategoryTimersModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingCategoryTimersModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingCategoryTimersModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. A list of ThingCategoryTimersModel is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getTimerTaskStatusWithDeviceId: | (NSString *) | devId | |
success: | (void(^)(NSArray< ThingTimerTaskModel * > *list)) | success | |
failure: | (ThingFailureError) | failure | |
Returns a list of timer tasks.
devId | The ID of the device to which the timer tasks are assigned. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getTimerTaskStatusWithDeviceId: | (NSString *) | devId | |
success: | (void(^)(NSArray< ThingTimerTaskModel * > *list)) | success | |
failure: | (ThingFailureError) | failure | |
Returns a list of timer tasks.
devId | The ID of the device to which the timer tasks are assigned. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getTimerTaskStatusWithDeviceId: | (NSString *) | devId | |
success: | (void(^)(NSArray< ThingTimerTaskModel * > *list)) | success | |
failure: | (ThingFailureError) | failure | |
Returns a list of timer tasks.
devId | The ID of the device to which the timer tasks are assigned. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (void) getTimerTaskStatusWithDeviceId: | (NSString *) | devId | |
success: | (void(^)(NSArray< ThingTimerTaskModel * > *list)) | success | |
failure: | (ThingFailureError) | failure | |
Returns a list of timer tasks.
devId | The ID of the device to which the timer tasks are assigned. |
success | Called when the task is finished. A list of ThingTimerTaskModel is returned. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (void) removeTimerWithTask: | (NSString *) | task | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes all timers from a specific task.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTask: | (NSString *) | task | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes all timers from a specific task.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTask: | (NSString *) | task | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes all timers from a specific task.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTask: | (NSString *) | task | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes all timers from a specific task.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (void) removeTimerWithTimerId: | (NSString *) | timerId | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes a single timer.
timerId | The timer ID for the delete process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTimerId: | (NSString *) | timerId | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes a single timer.
timerId | The timer ID for the delete process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTimerId: | (NSString *) | timerId | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes a single timer.
timerId | The timer ID for the delete process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) removeTimerWithTimerId: | (NSString *) | timerId | |
bizId: | (NSString *) | bizId | |
bizType: | (NSUInteger) | bizType | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Deletes a single timer.
timerId | The timer ID for the delete process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
status | Timing clock status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
status | Timing clock status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
status | Timing clock status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
status | Timing clock status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
timerId | The timer ID for the update process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
status | A Boolean value that indicates whether to enable the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerIds | The timer IDs for the batch operation. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerIds | The timer IDs for the batch operation. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerIds | The timer IDs for the batch operation. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerIds | The timer IDs for the batch operation. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
bizId | The service ID. Set the value to a device ID for device timing and a group ID for group timing. |
bizType | The service type. Set the value to 0 for device timing and 1 for group timing. |
updateType | The type of update. Valid values: 0 : disables the timer. 1 : enables the timer. 2 : deletes the timer. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the task. |
devId | The device ID. |
status | Timing group status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
devId | The device ID. |
status | Timing group status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
devId | The device ID. |
status | Timing group status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the task. |
devId | The device ID. |
status | Timing group status. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (void) updateTimerWithDeviceId: | (NSString *) | devId | |
timezoneId: | (NSString *) | timezoneId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Updates the time zone of a specified device.
devId | The ID of the device for which the time zone is updated. |
timezoneId | The ID of the time zone, such as "Asia/Shanghai". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimerWithDeviceId: | (NSString *) | devId | |
timezoneId: | (NSString *) | timezoneId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Updates the time zone of a specified device.
devId | The ID of the device for which the time zone is updated. |
timezoneId | The ID of the time zone, such as "Asia/Shanghai". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimerWithDeviceId: | (NSString *) | devId | |
timezoneId: | (NSString *) | timezoneId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Updates the time zone of a specified device.
devId | The ID of the device for which the time zone is updated. |
timezoneId | The ID of the time zone, such as "Asia/Shanghai". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (void) updateTimerWithDeviceId: | (NSString *) | devId | |
timezoneId: | (NSString *) | timezoneId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Updates the time zone of a specified device.
devId | The ID of the device for which the time zone is updated. |
timezoneId | The ID of the time zone, such as "Asia/Shanghai". |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
isAppPush | A Boolean value indicates whether to turn on the push notification. |
aliasName | The remark for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
task | The name of the timer task. |
loops | The count of loop for the timer task. |
devId | The device ID. |
timerId | The timer ID for the update process. |
time | Timed clocks under timed tasks |
dps | Command dictionary. |
timeZone | Time zone of the device +08:00. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartTimer(ThingDeprecatedApi).
- (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.
timerId | The timer ID for the update process. |
loops | The 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. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The scheduled time, such as 18:00 . |
dps | The command dictionary. |
status | A Boolean value that indicates whether to enable the timer. |
isAppPush | A Boolean value that indicates whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
loops | The 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. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The scheduled time, such as 18:00 . |
dps | The command dictionary. |
status | A Boolean value that indicates whether to enable the timer. |
isAppPush | A Boolean value that indicates whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
loops | The 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. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The scheduled time, such as 18:00 . |
dps | The command dictionary. |
status | A Boolean value that indicates whether to enable the timer. |
isAppPush | A Boolean value that indicates whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
- (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.
timerId | The timer ID for the update process. |
loops | The 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. |
bizId | Set the value to a device ID for device timing and a group ID for group timing. |
bizType | Set the value to 0 for device timing and 1 for group timing. |
time | The scheduled time, such as 18:00 . |
dps | The command dictionary. |
status | A Boolean value that indicates whether to enable the timer. |
isAppPush | A Boolean value that indicates whether to enable the push notification. |
aliasName | The remarks for the task. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |