1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
//
// TuyaSmartTimer+TYDeprecatedApi.h
// TuyaSmartTimerKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#ifndef TuyaSmartTimer_TYDeprecatedApi_h
#define TuyaSmartTimer_TYDeprecatedApi_h
 
#import "TuyaSmartTimer.h"
 
@interface TuyaSmartTimer (TYDeprecatedApi)
 
/// Add a new task for timer.
/// @param task The name of task.
/// @param loops The count of loop for the timer task.
/// @param devId The device ID for which the timer task needs to run on.
/// @param time The specific time to trigger this task.
/// @param dps The data point dictionary.
/// @param timeZone The timezone of the device.
/// @param success If successfully added the task, this block will be called.
/// @param failure If error occurred while adding the task, this block will be called.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.
- (void)addTimerWithTask:(NSString *)task
                   loops:(NSString *)loops
                   devId:(NSString *)devId
                    time:(NSString *)time
                     dps:(NSDictionary *)dps
                timeZone:(NSString *)timeZone
                 success:(TYSuccessHandler)success
                 failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] instead");
 
 
/// Add timed tasks。
/// @param task The name of the task.
/// @param loops Number of cycles.
/// @param devId The device ID.
/// @param time Timed clocks under timed tasks
/// @param dps Command dictionary.
/// @param timeZone Time zone of the device +08:00, if the phone time zone is not taken.
/// @param isAppPush A boolean value indicates whether to turn on the push notification.
/// @param aliasName The remark for the task.
/// @param success  Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure: instead.
- (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:(TYSuccessHandler)success
                 failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer addTimerWithTask:loops:bizId:bizType:time:dps:status:isAppPush:aliasName:success:failure:] instead");
 
 
/// Update timer task status.
/// @param task The name of the task.
/// @param devId The device ID.
/// @param status Timing group status.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::updateTimerStatusWithTask:bizId:bizType:status:success:failure: instead instead.
- (void)updateTimerTaskStatusWithTask:(NSString *)task
                                devId:(NSString *)devId
                               status:(NSInteger)status
                              success:(TYSuccessHandler)success
                              failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer updateTimerStatusWithTask:bizId:bizType:status:success:failure:] instead");
 
 
/// Update timeclock status.
/// @param task The name of the timer task.
/// @param devId The device ID.
/// @param timerId The timer ID for the update process.
/// @param status Timing clock status.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::updateTimerStatusWithTimerId:bizId:bizType:status:success:failure: instead instead.
- (void)updateTimerStatusWithTask:(NSString *)task
                            devId:(NSString *)devId
                          timerId:(NSString *)timerId
                           status:(NSInteger)status
                          success:(TYSuccessHandler)success
                          failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer updateTimerStatusWithTimerId:bizId:bizType:status:success:failure:] instead");
 
 
/// Delete time clock.
/// @param task The name of the timer task.
/// @param devId The device ID.
/// @param timerId The timer ID for the update process.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::removeTimerWithTimerId:bizId:bizType:success:failure: instead.
- (void)removeTimerWithTask:(NSString *)task
                      devId:(NSString *)devId
                    timerId:(NSString *)timerId
                    success:(TYSuccessHandler)success
                    failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer removeTimerWithTimerId:bizId:bizType:success:failure:] instead");
 
 
/// Update the timer.
/// @param task The name of the timer task.
/// @param loops The count of loop for the timer task.
/// @param devId The device ID.
/// @param timerId The timer ID for the update process.
/// @param time Timed clocks under timed tasks
/// @param dps Command dictionary.
/// @param timeZone Time zone of the device +08:00.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.
- (void)updateTimerWithTask:(NSString *)task
                      loops:(NSString *)loops
                      devId:(NSString *)devId
                    timerId:(NSString *)timerId
                       time:(NSString *)time
                        dps:(NSDictionary *)dps
                   timeZone:(NSString *)timeZone
                    success:(TYSuccessHandler)success
                    failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] instead");
 
 
/// Update the timer.
/// @param task The name of the timer task.
/// @param loops The count of loop for the timer task.
/// @param devId The device ID.
/// @param timerId The timer ID for the update process.
/// @param time Timed clocks under timed tasks
/// @param dps Command dictionary.
/// @param timeZone Time zone of the device +08:00.
/// @param isAppPush A boolean value indicates whether to turn on the push notification.
/// @param aliasName The remark for the task.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure: instead.
- (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:(TYSuccessHandler)success
                    failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer updateTimerWithTimerId:loops:bizId:bizType:time:dps:isAppPush:aliasName:success:failure:] instead");
 
 
/// Get all timer clocks under timer task.
/// @param task The name of the timer task.
/// @param devId The device ID.
/// @param success Called when the task finishes successfully.
/// @param failure Called when the task is interrupted by an error.
/// @deprecated This method is deprecated, Use TuyaSmartTimer::getTimerListWithTask:bizId:bizType:success:failure: instead.
- (void)getTimerWithTask:(NSString *)task
                   devId:(NSString *)devId
                 success:(void(^)(NSArray<TYTimerModel *> *list))success
                 failure:(TYFailureError)failure __deprecated_msg("This method is deprecated, Use [TuyaSmartTimer getTimerListWithTask:bizId:bizType:success:failure:] instead");
 
 
@end
 
 
#endif /* TuyaSmartTimer_TYDeprecatedApi_h */