mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
37 lines
1.0 KiB
Objective-C
37 lines
1.0 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import <LegacyComponents/ASHandle.h>
|
|
|
|
@interface ASActor : NSObject
|
|
|
|
+ (void)registerActorClass:(Class)requestBuilderClass;
|
|
|
|
+ (ASActor *)requestBuilderForGenericPath:(NSString *)genericPath path:(NSString *)path;
|
|
|
|
+ (NSString *)genericPath;
|
|
|
|
@property (nonatomic, strong) NSString *path;
|
|
|
|
@property (nonatomic, strong) NSString *requestQueueName;
|
|
@property (nonatomic, strong) NSDictionary *storedOptions;
|
|
|
|
@property (nonatomic) bool requiresAuthorization;
|
|
|
|
@property (nonatomic) NSTimeInterval cancelTimeout;
|
|
@property (nonatomic, strong) id cancelToken;
|
|
@property (nonatomic, strong) NSMutableArray *multipleCancelTokens;
|
|
@property (nonatomic) bool cancelled;
|
|
|
|
- (id)initWithPath:(NSString *)path;
|
|
- (void)prepare:(NSDictionary *)options;
|
|
- (void)execute:(NSDictionary *)options;
|
|
- (void)cancel;
|
|
|
|
- (void)addCancelToken:(id)token;
|
|
|
|
- (void)watcherJoined:(ASHandle *)watcherHandle options:(NSDictionary *)options waitingInActorQueue:(bool)waitingInActorQueue;
|
|
|
|
- (void)handleRequestProblem;
|
|
|
|
@end
|