mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
19 lines
380 B
Objective-C
19 lines
380 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
typedef enum {
|
|
SEventTypeNext,
|
|
SEventTypeError,
|
|
SEventTypeCompleted
|
|
} SEventType;
|
|
|
|
@interface SEvent : NSObject
|
|
|
|
@property (nonatomic, readonly) SEventType type;
|
|
@property (nonatomic, strong, readonly) id data;
|
|
|
|
- (instancetype)initWithNext:(id)next;
|
|
- (instancetype)initWithError:(id)error;
|
|
- (instancetype)initWithCompleted;
|
|
|
|
@end
|