123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #import <Foundation/Foundation.h>
- typedef NS_ENUM(NSInteger, APBBackwardCommandType) {
- BACKWARD_COMMAND_RESTART = 300,
- BACKWARD_COMMAND_ADD_PARALLEL_TASK = 302,
- BACKWARD_COMMNAD_GLOBAL_TIMER = 305,
- BACKWARD_COMMNAD_UPLOAD_DATA = 400,
- BACKWARD_COMMNAD_STOP_SCANCE = 401,
- };
- typedef NS_ENUM(NSInteger, APBTimerCommandType) {
- TIMER_COMMAND_START,
- TIMER_COMMAND_CANCEL,
- TIMER_COMMAND_PAUSE,
- TIMER_COMMAND_RESUME,
- };
- extern NSString *const kCommandRestartTaskIndexKey;
- extern NSString *const kAddParallelTaskInstanceKey;
- extern NSString *const kGlobalTimerCommandKey;
- @interface APBBackwardCommand : NSObject
- @property(nonatomic, assign, readonly)APBBackwardCommandType commandType;
- @property(nonatomic, strong, readonly)NSDictionary *params;
- - (instancetype)initWithCommandType:(APBBackwardCommandType)commandType
- withParams:(NSDictionary *)params;
- @end
|