mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-07-15 17:37:24 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
22 lines
863 B
Objective-C
22 lines
863 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTDatacenterAddress : NSObject <NSCoding, NSCopying>
|
|
|
|
@property (nonatomic, strong, readonly) NSString * _Nullable host;
|
|
@property (nonatomic, strong, readonly) NSString * _Nullable ip;
|
|
@property (nonatomic, readonly) uint16_t port;
|
|
@property (nonatomic, readonly) bool preferForMedia;
|
|
@property (nonatomic, readonly) bool restrictToTcp;
|
|
@property (nonatomic, readonly) bool cdn;
|
|
@property (nonatomic, readonly) bool preferForProxy;
|
|
@property (nonatomic, readonly) NSData * _Nullable secret;
|
|
|
|
- (instancetype _Nonnull)initWithIp:(NSString * _Nonnull)ip port:(uint16_t)port preferForMedia:(bool)preferForMedia restrictToTcp:(bool)restrictToTcp cdn:(bool)cdn preferForProxy:(bool)preferForProxy secret:(NSData * _Nullable)secret;
|
|
|
|
- (BOOL)isEqualToAddress:(MTDatacenterAddress * _Nonnull)other;
|
|
- (BOOL)isIpv6;
|
|
|
|
@end
|