mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 00:21:12 +00:00
30 lines
717 B
Objective-C
30 lines
717 B
Objective-C
#import "SCompositeDisposable.h"
|
|
|
|
#import "SEvent.h"
|
|
|
|
@interface SSubscriber : NSObject
|
|
|
|
- (instancetype)initWithNext:(void (^)(id))next error:(void (^)(id))error completed:(void (^)())completed;
|
|
|
|
- (id<SDisposable>)_disposable;
|
|
- (void)addDisposable:(id<SDisposable>)disposable;
|
|
|
|
- (void)putEvent:(SEvent *)event;
|
|
- (void)putNext:(id)next;
|
|
- (void)putError:(id)error;
|
|
- (void)putCompletion;
|
|
|
|
@end
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void SSubscriber_putNext(SSubscriber *subscriber, id next);
|
|
void SSubscriber_putError(SSubscriber *subscriber, id error);
|
|
void SSubscriber_putCompletion(SSubscriber *subscriber);
|
|
void SSubscriber_putEvent(SSubscriber *subscriber, SEvent *event);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |