mirror of
https://github.com/danog/Telegram.git
synced 2024-12-04 02:17:51 +01:00
29 lines
791 B
Objective-C
29 lines
791 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface TGBridgeContext : NSObject
|
|
|
|
@property (nonatomic, assign) bool authorized;
|
|
@property (nonatomic, assign) int32_t userId;
|
|
|
|
@property (nonatomic, assign) bool passcodeEnabled;
|
|
@property (nonatomic, assign) bool passcodeEncrypted;
|
|
|
|
@property (nonatomic, assign) bool customLocalizationEnabled;
|
|
|
|
@property (nonatomic, assign) bool micAccessAllowed;
|
|
|
|
@property (nonatomic, readonly) NSDictionary *startupData;
|
|
|
|
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
|
|
|
|
- (void)setStartupData:(NSDictionary *)startupData version:(int32_t)version;
|
|
- (NSInteger)startupDataVersion;
|
|
|
|
- (NSDictionary *)encodeWithStartupData:(bool)withStartupData;
|
|
|
|
+ (int32_t)versionWithCurrentDate;
|
|
|
|
@end
|
|
|
|
extern NSString *const TGBridgeContextStartupDataVersion;
|